|
|
@ -62,9 +62,9 @@ class User extends Api |
|
|
|
$account = $this->request->post('account'); |
|
|
|
$account = $this->request->post('account'); |
|
|
|
$password = $this->request->post('password'); |
|
|
|
$password = $this->request->post('password'); |
|
|
|
$code = $this->request->post('code'); |
|
|
|
$code = $this->request->post('code'); |
|
|
|
if (!$code) { |
|
|
|
// if (!$code) { |
|
|
|
$this->error(__('未获取到微信授权,请退出重新打开链接')); |
|
|
|
// $this->error(__('未获取到微信授权,请退出重新打开链接')); |
|
|
|
} |
|
|
|
// } |
|
|
|
if (!$account || !$password) { |
|
|
|
if (!$account || !$password) { |
|
|
|
$this->error(__('Invalid parameters')); |
|
|
|
$this->error(__('Invalid parameters')); |
|
|
|
} |
|
|
|
} |
|
|
|