|
|
@@ -12,6 +12,7 @@ use bizHd\cg\classes\CgRefundClass;
|
|
|
use bizHd\ghs\classes\GhsClass;
|
|
|
use bizHd\ljh\classes\LjhApplyClass;
|
|
|
use bizHd\purchase\classes\PurchaseClass;
|
|
|
+use bizHd\purchase\classes\PurchaseClearClass;
|
|
|
use bizHd\wx\classes\WxOpenClass;
|
|
|
use common\components\dict;
|
|
|
use common\components\noticeUtil;
|
|
|
@@ -326,7 +327,19 @@ class NoticeController extends PublicController
|
|
|
OrderClearClass::useBalanceClear($custom, $ghs, $shop, null);
|
|
|
}
|
|
|
|
|
|
- //零售采购结账通知
|
|
|
+ //零售线上结账通知
|
|
|
+ if ($capitalType == dict::getDict('capitalType', 'hdPurchaseClear', 'id')) {
|
|
|
+ $clearInfo = PurchaseClearClass::getByCondition(['orderSn' => $orderSn], true);
|
|
|
+ $customId = $clearInfo->customId ?? 0;
|
|
|
+ $ghsShopId = $clearInfo->ghsShopId ?? 0;
|
|
|
+ $ghsShop = ShopClass::getById($ghsShopId, true);
|
|
|
+ $custom = CustomClass::getById($customId, true);
|
|
|
+ if (!empty($custom) && !empty($ghsShop)) {
|
|
|
+ WxMessageClass::clearInform($ghsShop, $clearInfo, $custom);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //零售采购成功后续流程
|
|
|
if ($capitalType == dict::getDict('capitalType', 'xhPurchase', 'id')) {
|
|
|
$cg = PurchaseClass::getByCondition(['orderSn' => $orderSn], true);
|
|
|
$saleId = $cg->saleId ?? 0;
|