lizhen_gitee 17 hours ago
parent
commit
1649c4c7ff
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/api/controller/User.php

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

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