|
@@ -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('已经绑定了手机号');
|