|
|
@@ -198,9 +198,9 @@ class NoticeController extends PublicController
|
|
|
if (isset($cg->sendType) && in_array($cg->sendType, [0, 4])) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
- }
|
|
|
- if (isset($cg->sendType) && $cg->sendType == 0) {
|
|
|
- $sendKey = 'ghs_custom_today_has_get_send_cost_' . $current . '_' . $customId;
|
|
|
+
|
|
|
+ // 兼容快递收运费的情况
|
|
|
+ $sendKey = 'ghs_custom_today_has_get_send_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
}
|
|
|
@@ -417,9 +417,9 @@ class NoticeController extends PublicController
|
|
|
if (isset($cg->sendType) && in_array($cg->sendType, [0, 4])) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
- }
|
|
|
- if (isset($cg->sendType) && $cg->sendType == 0) {
|
|
|
- $sendKey = 'ghs_custom_today_has_get_send_cost_' . $current . '_' . $customId;
|
|
|
+
|
|
|
+ // 兼容快递收运费的情况
|
|
|
+ $sendKey = 'ghs_custom_today_has_get_send_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
}
|
|
|
@@ -585,9 +585,9 @@ class NoticeController extends PublicController
|
|
|
if (isset($cg->sendType) && in_array($cg->sendType, [0, 4])) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
- }
|
|
|
- if (isset($cg->sendType) && $cg->sendType == 0) {
|
|
|
- $sendKey = 'ghs_custom_today_has_get_send_cost_' . $current . '_' . $customId;
|
|
|
+
|
|
|
+ // 兼容快递收运费的情况
|
|
|
+ $sendKey = 'ghs_custom_today_has_get_send_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
|
|
|
@@ -842,9 +842,9 @@ class NoticeController extends PublicController
|
|
|
if (isset($cg->sendType) && in_array($cg->sendType, [0, 4])) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
- }
|
|
|
- if (isset($cg->sendType) && $cg->sendType == 0) {
|
|
|
- $sendKey = 'ghs_custom_today_has_get_send_cost_' . $current . '_' . $customId;
|
|
|
+
|
|
|
+ // 兼容快递收运费的情况
|
|
|
+ $sendKey = 'ghs_custom_today_has_get_send_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
}
|