|
|
@@ -314,6 +314,18 @@ class NoticeController extends PublicController
|
|
|
}
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 864000, 'has']);
|
|
|
|
|
|
+ //客户向供货商充值然后进行清账
|
|
|
+ if ($capitalType == dict::getDict('capitalType', 'customRechargeToGhs', 'id')) {
|
|
|
+ $customRecharge = CustomRechargeClass::getByCondition(['orderSn' => $orderSn], true);
|
|
|
+ $customId = $customRecharge->customId ?? 0;
|
|
|
+ $ghsId = $customRecharge->ghsId ?? 0;
|
|
|
+ $ghs = GhsClass::getLockById($ghsId);
|
|
|
+ $ghsShopId = $ghs->shopId ?? 0;
|
|
|
+ $custom = CustomClass::getLockById($customId);
|
|
|
+ $shop = ShopClass::getById($ghsShopId, true);
|
|
|
+ OrderClearClass::useBalanceClear($custom, $ghs, $shop, null);
|
|
|
+ }
|
|
|
+
|
|
|
//零售采购结账通知
|
|
|
if ($capitalType == dict::getDict('capitalType', 'xhPurchase', 'id')) {
|
|
|
$cg = PurchaseClass::getByCondition(['orderSn' => $orderSn], true);
|