|
|
@@ -192,14 +192,13 @@ class NoticeController extends PublicController
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
}
|
|
|
} else {
|
|
|
- //标记当配送方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
+ //标记当配送方式已成功下过单,后续不再要求门槛或加收费用
|
|
|
$customId = $cg->customId ?? 0;
|
|
|
$current = date("Y_m_d");
|
|
|
- if (isset($cg->sendType) && in_array($cg->sendType, [0, 4])) {
|
|
|
+ if (isset($cg->sendType)) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
|
|
|
- // 兼容快递收运费的情况
|
|
|
$sendKey = 'ghs_custom_today_has_get_send_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
@@ -411,14 +410,13 @@ class NoticeController extends PublicController
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
}
|
|
|
} else {
|
|
|
- //标记当配送方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
+ //标记当配送方式已成功下过单,后续不再要求门槛或加收费用
|
|
|
$customId = $cg->customId ?? 0;
|
|
|
$current = date("Y_m_d");
|
|
|
- if (isset($cg->sendType) && in_array($cg->sendType, [0, 4])) {
|
|
|
+ if (isset($cg->sendType)) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
|
|
|
- // 兼容快递收运费的情况
|
|
|
$sendKey = 'ghs_custom_today_has_get_send_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
@@ -579,14 +577,13 @@ class NoticeController extends PublicController
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
- //标记当配送方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
+ //标记当配送方式已成功下过单,后续不再要求门槛或加收费用
|
|
|
$customId = $cg->customId ?? 0;
|
|
|
$current = date("Y_m_d");
|
|
|
- if (isset($cg->sendType) && in_array($cg->sendType, [0, 4])) {
|
|
|
+ if (isset($cg->sendType)) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
|
|
|
- // 兼容快递收运费的情况
|
|
|
$sendKey = 'ghs_custom_today_has_get_send_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|
|
|
@@ -836,14 +833,13 @@ class NoticeController extends PublicController
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
}
|
|
|
} else {
|
|
|
- //标记当配送方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
+ //标记当配送方式已成功下过单,后续不再要求门槛或加收费用
|
|
|
$customId = $cg->customId ?? 0;
|
|
|
$current = date("Y_m_d");
|
|
|
- if (isset($cg->sendType) && in_array($cg->sendType, [0, 4])) {
|
|
|
+ if (isset($cg->sendType)) {
|
|
|
$key = 'ghs_custom_today_has_get_pack_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
|
|
|
- // 兼容快递收运费的情况
|
|
|
$sendKey = 'ghs_custom_today_has_get_send_cost_' . $cg->sendType . '_' . $current . '_' . $customId;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
}
|