|
|
@@ -71,11 +71,13 @@ class NoticeController extends PublicController
|
|
|
$cg = PurchaseClass::getByCondition(['orderSn' => $orderSn], true);
|
|
|
|
|
|
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']);
|
|
|
+ if ($cg->transType != 5 && $cg->transType != 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']);
|
|
|
+ }
|
|
|
} else {
|
|
|
if (isset($cg->sendType) && $cg->sendType == 4) {
|
|
|
//标记当天发快递方式已收一次包装费,岭南批发市场用的功能
|
|
|
@@ -308,11 +310,13 @@ class NoticeController extends PublicController
|
|
|
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']);
|
|
|
+ if ($cg->transType != 5 && $cg->transType != 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']);
|
|
|
+ }
|
|
|
} else {
|
|
|
if (isset($cg->sendType) && $cg->sendType == 4) {
|
|
|
//标记当天发快递方式已收一次包装费,岭南批发市场用的功能
|