|
|
@@ -121,7 +121,7 @@ class NoticeController extends PublicController
|
|
|
}
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 864000, 'has']);
|
|
|
|
|
|
- //客户向供货商充值然后进行清账
|
|
|
+ //客户向供货商充值然后进行清账,关键词 custom_recharge_ghs_clear_action
|
|
|
if ($capitalType == dict::getDict('capitalType', 'customRechargeToGhs', 'id')) {
|
|
|
$customRecharge = CustomRechargeClass::getByCondition(['orderSn' => $orderSn], true);
|
|
|
$customId = $customRecharge->customId ?? 0;
|
|
|
@@ -131,6 +131,8 @@ class NoticeController extends PublicController
|
|
|
$custom = CustomClass::getLockById($customId);
|
|
|
$shop = ShopClass::getById($ghsShopId, true);
|
|
|
OrderClearClass::useBalanceClear($custom, $ghs, $shop, null);
|
|
|
+ //充值销账通知
|
|
|
+ WxMessageClass::customRechargeClearInform($shop, $customRecharge);
|
|
|
}
|
|
|
|
|
|
//零售采购结账通知
|
|
|
@@ -315,7 +317,7 @@ class NoticeController extends PublicController
|
|
|
}
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 864000, 'has']);
|
|
|
|
|
|
- //客户向供货商充值然后进行清账
|
|
|
+ //客户向供货商充值然后进行清账,关键词 custom_recharge_ghs_clear_action
|
|
|
if ($capitalType == dict::getDict('capitalType', 'customRechargeToGhs', 'id')) {
|
|
|
$customRecharge = CustomRechargeClass::getByCondition(['orderSn' => $orderSn], true);
|
|
|
$customId = $customRecharge->customId ?? 0;
|
|
|
@@ -325,6 +327,8 @@ class NoticeController extends PublicController
|
|
|
$custom = CustomClass::getLockById($customId);
|
|
|
$shop = ShopClass::getById($ghsShopId, true);
|
|
|
OrderClearClass::useBalanceClear($custom, $ghs, $shop, null);
|
|
|
+ //充值销账通知
|
|
|
+ WxMessageClass::customRechargeClearInform($shop, $customRecharge);
|
|
|
}
|
|
|
|
|
|
//零售线上结账通知
|