Explorar o código

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

sunxbiao hai 1 ano
pai
achega
48a78224de
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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 1287
         $data['addres'] = $this->request->param('addres', null);
1288 1288
         $data['mark'] = $this->request->param('mark', null);
1289 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 1294
         $data = array_filter($data, function($value) {
1292 1295
             return $value !== null;
1293 1296
         });