qiushang 8 месяцев назад
Родитель
Сommit
959c3afdec
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Api/WechatOfficialController.php

+ 1 - 1
app/Http/Api/WechatOfficialController.php

@@ -241,7 +241,7 @@ class WechatOfficialController extends HttpBaseController
                     return "欢迎你关注助友办公软件";
                 } else {
                     $oauthUrl = $this->app->oauth->withState(base64_encode($sceneStr))->redirect();
-                    //$oauthUrl = str_replace('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1edb103f32029099&redirect_uri=https%3A%2F%2Fwww.qasimblog.com%2Fapi%2Fwechat%2FoauthCallback&response_type=code&scope=snsapi_userinfo&state=', '', $oauthUrl);
+                    $oauthUrl = str_replace('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1edb103f32029099&redirect_uri=https%3A%2F%2Fwww.qasimblog.com%2Fapi%2Fwechat%2FoauthCallback&response_type=code&scope=snsapi_userinfo&state=WHdCeXhSMW5vUHgzOjUyNDEzYTY3MWVjNzAzNDc4M2FhM', '', $oauthUrl);
                     $items = [
                         new NewsItem([
                             'title' => '',