lizhen_gitee hace 16 horas
padre
commit
1649c4c7ff
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      application/api/controller/User.php

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

@@ -519,6 +519,7 @@ class User extends Api
         } else {
         } else {
             $extend = [
             $extend = [
                 'wechat_openid' => $wechatCode['openid'],
                 'wechat_openid' => $wechatCode['openid'],
+                'gender' => -1
             ];
             ];
             $ret = $this->auth->register('', '','', $mobile, $extend);
             $ret = $this->auth->register('', '','', $mobile, $extend);
         }
         }