Browse Source

身份证号

linwu 2 năm trước cách đây
mục cha
commit
abffe47341
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/mainapp/controller/My.php

+ 1 - 1
app/mainapp/controller/My.php

@@ -444,7 +444,7 @@ class My extends BaseController
         if (is_string($data)) {
             $data = json_decode($data,true);
         }
-        $fileds = ['nickname', 'nickname', 'gender', 'birthday'];
+        $fileds = ['nickname', 'idcard', 'gender', 'birthday'];
         foreach ($data as $k => $v) {
             if (in_array($k, $fileds)) {
                 $user->$k = $v;