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