|
|
@@ -192,19 +192,22 @@ class NoticeController extends PublicController
|
|
|
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");
|
|
|
- if ($cg->packCost > 0) {
|
|
|
+ //标记当天发快递方式已收一次包装费,岭南批发市场用的功能
|
|
|
+ $customId = $cg->customId ?? 0;
|
|
|
+ $current = date("Y_m_d");
|
|
|
+ if ($cg->packCost > 0) {
|
|
|
+ if (isset($cg->sendType) && $cg->sendType == 4) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
}
|
|
|
- if ($cg->sendCost > 0) {
|
|
|
+ }
|
|
|
+ if ($cg->sendCost > 0) {
|
|
|
+ if (isset($cg->sendType) && $cg->sendType == 0) {
|
|
|
$sendKey = 'ghs_custom_today_has_get_send_cost_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (!empty($cg) && $cg->payStatus == 1) {
|
|
|
@@ -413,15 +416,17 @@ class NoticeController extends PublicController
|
|
|
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");
|
|
|
- if ($cg->packCost > 0) {
|
|
|
+ //标记当天发快递方式已收一次包装费,岭南批发市场用的功能
|
|
|
+ $customId = $cg->customId ?? 0;
|
|
|
+ $current = date("Y_m_d");
|
|
|
+ if ($cg->packCost > 0) {
|
|
|
+ if (isset($cg->sendType) && $cg->sendType == 4) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
}
|
|
|
- if ($cg->sendCost > 0) {
|
|
|
+ }
|
|
|
+ if ($cg->sendCost > 0) {
|
|
|
+ if (isset($cg->sendType) && $cg->sendType == 0) {
|
|
|
$sendKey = 'ghs_custom_today_has_get_send_cost_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
@@ -582,19 +587,23 @@ class NoticeController extends PublicController
|
|
|
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");
|
|
|
- if ($cg->packCost > 0) {
|
|
|
+
|
|
|
+ //标记当天发快递方式已收一次包装费,岭南批发市场用的功能
|
|
|
+ $customId = $cg->customId ?? 0;
|
|
|
+ $current = date("Y_m_d");
|
|
|
+ if ($cg->packCost > 0) {
|
|
|
+ if (isset($cg->sendType) && $cg->sendType == 4) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
}
|
|
|
- if ($cg->sendCost > 0) {
|
|
|
+ }
|
|
|
+ if ($cg->sendCost > 0) {
|
|
|
+ if (isset($cg->sendType) && $cg->sendType == 0) {
|
|
|
$sendKey = 'ghs_custom_today_has_get_send_cost_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (!empty($cg) && $cg->payStatus == 1) {
|