ソースを参照

在闪送开放平台里,“redirectUrl 参数错误” 是 OAuth 授权流程中最常见的错误之一。
它几乎都和 配置的授权跳转 URL 不匹配 有关。

shizhongqi 9 ヶ月 前
コミット
115a1bc68b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app-ghs/controllers/DeliveryController.php

+ 1 - 1
app-ghs/controllers/DeliveryController.php

@@ -23,7 +23,7 @@ class DeliveryController extends BaseController
     {
         //闪送授权(商户授权:授权后能为商户下所有门店发单)
         $auth = new \common\components\delivery\platform\shanSong\Auth();
-        $redirectUrl = 'https://api.shop.hzghd.com/delivery/callback';
+        $redirectUrl = 'https://api.shop.hzghd.com/delivery/auth-callback';
         $authUrl = $auth->generateMerchantAuthUrl($this->mainId, $redirectUrl);
 
         // 重定向用户