ソースを参照

更新用户信息接口更换参数

sunxbiao 1 年間 前
コミット
31a545d57b
共有1 個のファイルを変更した4 個の追加4 個の削除を含む
  1. 4 4
      app/controller/api/user/User.php

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

@@ -1286,10 +1286,10 @@ class User extends BaseController
1286
         $data['birthday'] = $this->request->param('birthday', null);
1286
         $data['birthday'] = $this->request->param('birthday', null);
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);
1290
-//        $data['phone'] = $this->request->param('phone', null);
1291
-        if (!empty($data['account'])) {
1292
-            $data['phone'] = $data['account'];
1289
+        $data['phone'] = $this->request->param('phone', null);
1290
+        //        $data['phone'] = $this->request->param('phone', null);
1291
+        if (!empty($data['phone'])) {
1292
+            $data['account'] = $data['phone'];
1293
         }
1293
         }
1294
         $data = array_filter($data, function($value) {
1294
         $data = array_filter($data, function($value) {
1295
             return $value !== null;
1295
             return $value !== null;