|
|
@@ -306,6 +306,23 @@ class NoticeController extends PublicController
|
|
|
if ($capitalType == dict::getDict('capitalType', 'xhPurchase', 'id')) {
|
|
|
$cg = PurchaseClass::getByCondition(['orderSn' => $orderSn], true);
|
|
|
if (!empty($cg) && $cg->payStatus == 1) {
|
|
|
+
|
|
|
+ if (isset($cg->localOrder) && $cg->localOrder == 1) {
|
|
|
+ //昆明发货,客户算了一次打包费和运费,第二次就不再算了
|
|
|
+ $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']);
|
|
|
+ } else {
|
|
|
+ if (isset($cg->sendType) && $cg->sendType == 4) {
|
|
|
+ //标记当天发快递方式已收一次包装费,岭南批发市场用的功能
|
|
|
+ $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']);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//微信通知
|
|
|
$saleId = $cg->saleId ?? 0;
|
|
|
$order = OrderClass::getById($saleId, true);
|