|
@@ -240,6 +240,7 @@ class ShopApply extends BaseModel
|
|
{
|
|
{
|
|
//检测店铺是否已存在
|
|
//检测店铺是否已存在
|
|
$apply_info = model('shop_apply')->getInfo([ [ 'apply_id', '=', $apply_id ] ]);
|
|
$apply_info = model('shop_apply')->getInfo([ [ 'apply_id', '=', $apply_id ] ]);
|
|
|
|
+ dump($apply_info);die;
|
|
if ($apply_info['site_id'] != 0) {
|
|
if ($apply_info['site_id'] != 0) {
|
|
$shop_info = model("shop")->getInfo([ [ 'site_id', '=', $apply_info['site_id'] ] ]);
|
|
$shop_info = model("shop")->getInfo([ [ 'site_id', '=', $apply_info['site_id'] ] ]);
|
|
if ($shop_info['cert_id'] == 0) {
|
|
if ($shop_info['cert_id'] == 0) {
|
|
@@ -371,14 +372,11 @@ class ShopApply extends BaseModel
|
|
'create_time' => time()
|
|
'create_time' => time()
|
|
];
|
|
];
|
|
$group_id = $group->addGroup($group_data)['data'];
|
|
$group_id = $group->addGroup($group_data)['data'];
|
|
- echo $group_id."<br />";
|
|
|
|
- $id = Db::table('v4group')->getLastInsID();
|
|
|
|
- echo $id;
|
|
|
|
- die;
|
|
|
|
|
|
|
|
//更新管理员信息
|
|
//更新管理员信息
|
|
model("user")->update(
|
|
model("user")->update(
|
|
- [ 'group_id' => $group_id,'group_name' => '管理员组', 'site_id' => $site_id, 'app_group' => $apply_info['group_id'] ],
|
|
|
|
|
|
+ [ 'group_id' => $group_id,'group_name' => '管理员组', 'site_id' => $site_id, 'app_group' => $apply_info['group_id']
|
|
|
|
+ ],
|
|
[ [ 'uid', '=', $apply_info['uid'] ], [ 'app_module', '=', 'shop' ] ]);
|
|
[ [ 'uid', '=', $apply_info['uid'] ], [ 'app_module', '=', 'shop' ] ]);
|
|
//更新认证信息
|
|
//更新认证信息
|
|
//model("shop_cert")->update([ 'site_id' => $site_id ], [ [ 'cert_id', '=', $apply_info['cert_id'] ] ]);
|
|
//model("shop_cert")->update([ 'site_id' => $site_id ], [ [ 'cert_id', '=', $apply_info['cert_id'] ] ]);
|