Browse Source

Wesmiler 校企小程序源代码部署

wesmiler 4 năm trước cách đây
mục cha
commit
9c1b3d2597
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/api/controller/Passport.php

+ 2 - 1
app/api/controller/Passport.php

@@ -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());
         }
         // 获取登录成功后的用户信息