|
|
@@ -126,7 +126,10 @@ class DeliveryController extends BaseController
|
|
|
{
|
|
|
$fengnaioAuth = new \common\components\delivery\platform\fengniao\Auth();
|
|
|
$mainId = $this->mainId;
|
|
|
- $redirectUrl = Yii::$app->params['ghsHost'] . '/delivery/fengniao-auth-callback' . '?main_id=' . $mainId;
|
|
|
+ // $apiHost = Yii::$app->params['ghsHost'];
|
|
|
+ // TODO 暂时修改为测试环境
|
|
|
+ $apiHost = 'https://api.shop.hzghd.com';
|
|
|
+ $redirectUrl = $apiHost . '/delivery/fengniao-auth-callback' . '?main_id=' . $mainId;
|
|
|
$authUrl = $fengnaioAuth->generateAuthUrl($redirectUrl);
|
|
|
|
|
|
util::success(['url'=>$authUrl]);
|
|
|
@@ -261,7 +264,7 @@ class DeliveryController extends BaseController
|
|
|
$remark = $post['remark'] ?? '';
|
|
|
|
|
|
$adminId = $this->adminId;
|
|
|
- util::checkRepeatCommit($adminId, 4);
|
|
|
+ util::checkRepeatCommit($adminId, 3);
|
|
|
|
|
|
$orderId = intval($post['orderId']);
|
|
|
$order = OrderClass::getById($orderId);
|
|
|
@@ -773,6 +776,7 @@ class DeliveryController extends BaseController
|
|
|
if(!isset($get['main_id'])){
|
|
|
Yii::error('蜂鸟授权回调的回调地址 authCallbackUrl 中没有带 main_id');
|
|
|
noticeUtil::push('蜂鸟授权回调的回调地址 authCallbackUrl 中没有带 main_id,回调数据:' . json_encode($callbackData, JSON_UNESCAPED_UNICODE), 'fengniao');
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
$mainId = $get['main_id'];
|