Parcourir la source

在实现测试环境下,对货拉拉跑腿进行线上账号测试进行的修改,后继要修改为回来

shizhongqi il y a 9 mois
Parent
commit
c815c6342e
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      app-ghs/controllers/DeliveryController.php

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

@@ -112,7 +112,9 @@ class DeliveryController extends BaseController
     {
         $huoLalaAuth = new \common\components\delivery\platform\huolala\Auth();
         $mainId = $this->mainId;
-        $apiHost = Yii::$app->params['ghsHost'];
+        // $apiHost = Yii::$app->params['ghsHost'];
+        // TODO 暂时修改为测试环境
+        $apiHost = 'https://api.shop.hzghd.com';
         $redirectUrl = $apiHost . '/delivery/huolala-auth-callback' . '?mainId=' . $mainId;
         $authUrl = $huoLalaAuth->generateAuthUrl($redirectUrl);