Commit f143c0cf authored by jianghaiming's avatar jianghaiming

update:Set

parent a724aa39
......@@ -27,6 +27,26 @@ class MarketingService
$endTime = !empty($params['end_time']) ? $params['end_time'] : '';
$goodsSkuId = !empty($params['goods_sku_id']) ? $params['goods_sku_id'] : '';
$lifeAccountId = !empty($params['life_account_id']) ? $params['life_account_id'] : '';
if (empty($startTime)) {
throw new MarketingException(['cus'=>8]);
}
if (empty($endTime)) {
throw new MarketingException(['cus'=>9]);
}
// if ($startTime <= date("Y-m-d")) {
// throw new MarketingException(['cus'=>10]);
// }
if ($endTime <= date("Y-m-d")) {
throw new MarketingException(['cus'=>11]);
}
if ($startTime >= $endTime) {
throw new MarketingException(['cus'=>14]);
}
$goodsData = [
"OR" => [
......@@ -50,6 +70,7 @@ class MarketingService
$where = [
'online_status' => 1,
'rule_refund' => 2,
];
if (!empty($tmpGoodsSkuId)) {
......@@ -188,15 +209,15 @@ class MarketingService
throw new MarketingException(['cus'=>9]);
}
if ($startTime <= date("Y-m-d")) {
throw new MarketingException(['cus'=>10]);
}
// if ($startTime <= date("Y-m-d")) {
// throw new MarketingException(['cus'=>10]);
// }
if ($endTime <= date("Y-m-d")) {
throw new MarketingException(['cus'=>11]);
}
if ($startTime >= $endTime) {
if ($startTime >= $endTime) {
throw new MarketingException(['cus'=>14]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment