zxhxx 3 سال پیش
والد
کامیت
adba14d3a9
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      application/api/controller/User.php

+ 2 - 1
application/api/controller/User.php

@@ -379,6 +379,7 @@ class User extends Api
                 ['id_card',''],
                 ['nation',''],
                 ['birthday',''],
+                ['gender',0],
                 ['user_type',0],
                 ['mobile',''],
             ],$request
@@ -392,7 +393,7 @@ class User extends Api
         {
             if($v!='')
             {
-                if(in_array($key,['id_card','birthday','user_type','mobile']))
+                if(in_array($key,['id_card','birthday','user_type','mobile','gender']))
                 {
                     $user[$key] = $v;
                 }