songxingwei 3 years ago
parent
commit
0aef24129f
2 changed files with 4 additions and 4 deletions
  1. 2 2
      app/model/Model.php
  2. 2 2
      app/model/shop/ShopApply.php

+ 2 - 2
app/model/Model.php

@@ -265,8 +265,8 @@ class Model
      */
     final public function add($data = [], $is_return_pk = true)
     {
-        Db::name($this->table)->insert($data, true, $is_return_pk);
-        echo  Db::name($this->table)->getLastSql();die;
+//        Db::name($this->table)->insert($data, true, $is_return_pk);
+//        echo  Db::name($this->table)->getLastSql();die;
         return Db::name($this->table)->insert($data, true, $is_return_pk);
     }
     

+ 2 - 2
app/model/shop/ShopApply.php

@@ -253,12 +253,12 @@ class ShopApply extends BaseModel
 		try {
 
 			//添加系统站
-			//$site_id = model("site")->add([ 'site_type' => 'shop' ]);
+			$site_id = model("site")->add([ 'site_type' => 'shop' ]);
+			echo $site_id;die;
             //echo "<pre>";print_r($apply_info);exit;
 			//获取用户账户信息
             $user_info = model('user')->getInfo([ ['uid','=',$apply_info['uid']] ],'username');
             if (!$user_info){
-                echo 2221;die;
                 $user_info = model('member')->getInfo([['member_id','=',$apply_info['member_id']]],'username');
                 $user_data['app_module'] = 'shop';
                 $user_data['app_group'] = 1;