|
|
@@ -68,6 +68,15 @@ class NoticeController extends PublicController
|
|
|
//零售采购结账通知
|
|
|
if ($capitalType == dict::getDict('capitalType', 'xhPurchase', 'id')) {
|
|
|
$cg = PurchaseClass::getByCondition(['orderSn' => $orderSn], true);
|
|
|
+
|
|
|
+ //标记当天已收一次包装费,岭南批发市场用的功能
|
|
|
+ if (isset($cg->packCost) && $cg->packCost > 0) {
|
|
|
+ $customId = $cg->customId ?? 0;
|
|
|
+ $current = date("Y_m_d");
|
|
|
+ $key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
|
|
|
+ Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
+ }
|
|
|
+
|
|
|
if (!empty($cg) && $cg->payStatus == 1) {
|
|
|
//微信通知
|
|
|
$saleId = $cg->saleId ?? 0;
|
|
|
@@ -163,7 +172,7 @@ class NoticeController extends PublicController
|
|
|
$text = "【退款失败】退款单号:{$orderSn} {$out_refund_no} 订单金额:{$new_total_fee} 退款金额:{$new_settlement_refund_fee} ";
|
|
|
}
|
|
|
$transaction->commit();
|
|
|
- if(!empty($text)){
|
|
|
+ if (!empty($text)) {
|
|
|
noticeUtil::push($text, '15280215347');
|
|
|
}
|
|
|
echo '<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>';
|