wesmiler 3 лет назад
Родитель
Сommit
1801638ad0

+ 1 - 0
source/application/api/controller/Goods.php

@@ -53,6 +53,7 @@ class Goods extends Controller
         if($goods['category_id'] == '10001'){
             $goods['is_upgrade'] = 1;
         }
+
         // 多规格商品sku信息, todo: 已废弃 v1.1.25
         $specData = $goods['spec_type'] == 20 ? $model->getManySpecData($goods['spec_rel'], $goods['sku']) : null;
         return $this->renderSuccess([

+ 1 - 0
source/application/api/model/User.php

@@ -133,6 +133,7 @@ class User extends UserModel
             // 保存/更新用户记录
             if (!$model->allowField(true)->save(array_merge($data, [
                 'open_id' => $open_id,
+                'status' => 0,
                 'wxapp_id' => self::$wxapp_id
             ]))) {
                 throw new BaseException(['msg' => '用户注册失败']);