Prechádzať zdrojové kódy

微信注册与手机号注册,大改动

lizhen_gitee 11 mesiacov pred
rodič
commit
e4824ed85b
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      application/api/controller/User.php

+ 3 - 3
application/api/controller/User.php

@@ -193,7 +193,7 @@ class User extends Api
     //微信登录+注册
     public function wechatlogin(){
 
-        $code = $this->request->param('code','');
+        $code = input('code','');
         if(!$code){
             $this->error(__('Invalid parameters'));
         }
@@ -246,8 +246,8 @@ class User extends Api
      */
     public function bindmobile()
     {
-        $mobile = $this->request->request('mobile');
-        $captcha = $this->request->request('captcha');
+        $mobile = input('mobile');
+        $captcha = input('captcha');
 
         if(!empty($this->auth->mobile)){
             $this->error('已经绑定了手机号');