diff --git a/application/api/controller/User.php b/application/api/controller/User.php index 0368c10..b6189f3 100755 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -173,6 +173,8 @@ class User extends Api $extend['pid'] = $user->id; } } + $warehouse = Warehouse::where('id','>',0)->find(); + $extend['warehouse_id'] = $warehouse['id'] ?? 0; // $ret = Sms::check($mobile, $code, 'register'); // if (!$ret) { // $this->error(__('Captcha is incorrect'));