songxingwei hace 3 años
padre
commit
5a24557b8d
Se han modificado 1 ficheros con 3 adiciones y 5 borrados
  1. 3 5
      app/model/shop/ShopApply.php

+ 3 - 5
app/model/shop/ShopApply.php

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