|
|
@@ -192,11 +192,11 @@ class NoticeController extends PublicController
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
}
|
|
|
} else {
|
|
|
- //标记当天发快递方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
+ //标记当配送方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
$customId = $cg->customId ?? 0;
|
|
|
$current = date("Y_m_d");
|
|
|
- if (isset($cg->sendType) && $cg->sendType == 4) {
|
|
|
- $key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
|
|
|
+ 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) {
|
|
|
@@ -411,11 +411,11 @@ class NoticeController extends PublicController
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
|
|
|
}
|
|
|
} else {
|
|
|
- //标记当天发快递方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
+ //标记当配送方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
$customId = $cg->customId ?? 0;
|
|
|
$current = date("Y_m_d");
|
|
|
- if (isset($cg->sendType) && $cg->sendType == 4) {
|
|
|
- $key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
|
|
|
+ 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) {
|
|
|
@@ -579,11 +579,11 @@ class NoticeController extends PublicController
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
- //标记当天发快递方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
+ //标记当配送方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
$customId = $cg->customId ?? 0;
|
|
|
$current = date("Y_m_d");
|
|
|
- if (isset($cg->sendType) && $cg->sendType == 4) {
|
|
|
- $key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
|
|
|
+ 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) {
|
|
|
@@ -836,18 +836,18 @@ 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) && $cg->sendType == 4) {
|
|
|
- $key = 'ghs_custom_today_has_get_pack_cost_' . $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;
|
|
|
- Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
+ //标记当配送方式已收一次包装费/运费,岭南批发市场用的功能,关键词 sh_method_area,只要有成功单就标记,不再要求金额必须>0
|
|
|
+ $customId = $cg->customId ?? 0;
|
|
|
+ $current = date("Y_m_d");
|
|
|
+ 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;
|
|
|
+ Yii::$app->redis->executeCommand('SETEX', [$sendKey, 86400, '1']);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
//微信通知
|
|
|
$saleId = $cg->saleId ?? 0;
|