From 17aec05a90ba0ca94eb6e6ca3f66339ddff75437 Mon Sep 17 00:00:00 2001 From: lqmac Date: Thu, 26 Oct 2023 17:36:35 +0800 Subject: [PATCH] 1 --- application/api/controller/User.php | 2 ++ 1 file changed, 2 insertions(+) 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'));