Browse Source

更新用户信息接口取消参数

sunxbiao 1 year ago
parent
commit
48a78224de
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/controller/api/user/User.php

+ 4 - 1
app/controller/api/user/User.php

@@ -1287,7 +1287,10 @@ class User extends BaseController
1287
         $data['addres'] = $this->request->param('addres', null);
1287
         $data['addres'] = $this->request->param('addres', null);
1288
         $data['mark'] = $this->request->param('mark', null);
1288
         $data['mark'] = $this->request->param('mark', null);
1289
         $data['account'] = $this->request->param('account', null);
1289
         $data['account'] = $this->request->param('account', null);
1290
-        $data['phone'] = $this->request->param('phone', null);
1290
+//        $data['phone'] = $this->request->param('phone', null);
1291
+        if (!empty($data['account'])) {
1292
+            $data['phone'] = $data['account'];
1293
+        }
1291
         $data = array_filter($data, function($value) {
1294
         $data = array_filter($data, function($value) {
1292
             return $value !== null;
1295
             return $value !== null;
1293
         });
1296
         });