|
|
@@ -60,7 +60,8 @@ class Passport extends Controller
|
|
|
{
|
|
|
// 微信小程序一键登录
|
|
|
$LoginService = new LoginService;
|
|
|
- if (!$LoginService->loginMpWx($this->postForm())) {
|
|
|
+ $params = $this->postForm()? $this->postForm() : $this->request->param();
|
|
|
+ if (!$LoginService->loginMpWx($params)) {
|
|
|
return $this->renderError($LoginService->getError());
|
|
|
}
|
|
|
// 获取登录成功后的用户信息
|