qiushang 8 месяцев назад
Родитель
Сommit
9b1b160f1f
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://www.qasimblog.com/', '', $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', '', $oauthUrl);
                     $items = [
                         new NewsItem([
                             'title' => '',