|
|
@@ -13,9 +13,9 @@ Class AuthService{
|
|
|
//闪送授权(商户授权:授权后能为商户下所有门店发单)
|
|
|
$auth = new \common\components\delivery\platform\shansong\Auth();
|
|
|
if(getenv('YII_ENV') == 'production') {
|
|
|
- //$apiHost = Yii::$app->params['ghsHost'];
|
|
|
+ $apiHost = Yii::$app->params['ghsHost'];
|
|
|
// TODO 暂时修改为测试环境
|
|
|
- $apiHost = 'https://api.shop.hzghd.com';
|
|
|
+ //$apiHost = 'https://api.shop.hzghd.com';
|
|
|
} else {
|
|
|
$apiHost = Yii::$app->params['ghsHost'];
|
|
|
}
|
|
|
@@ -32,7 +32,7 @@ Class AuthService{
|
|
|
$huoLalaAuth = new \common\components\delivery\platform\huolala\Auth();
|
|
|
// $apiHost = Yii::$app->params['ghsHost'];
|
|
|
// TODO 暂时修改为测试环境
|
|
|
- $apiHost = 'https://api.shop.hzghd.com';
|
|
|
+ $apiHost = Yii::$app->params['ghsHost'];
|
|
|
$redirectUrl = $apiHost . '/delivery/huolala-auth-callback' . '?mainId=' . $mainId;
|
|
|
$authUrl = $huoLalaAuth->generateAuthUrl($redirectUrl);
|
|
|
|
|
|
@@ -45,7 +45,7 @@ Class AuthService{
|
|
|
$fengnaioAuth = new \common\components\delivery\platform\fengniao\Auth();
|
|
|
// $apiHost = Yii::$app->params['ghsHost'];
|
|
|
// TODO 暂时修改为测试环境
|
|
|
- $apiHost = 'https://api.shop.hzghd.com';
|
|
|
+ $apiHost = Yii::$app->params['ghsHost'];
|
|
|
$redirectUrl = $apiHost . '/delivery/fengniao-auth-callback' . '?main_id=' . $mainId;
|
|
|
$authUrl = $fengnaioAuth->generateAuthUrl($redirectUrl);
|
|
|
|