Commit da5cc3fc authored by luhongguang's avatar luhongguang

update:拼单活动,自提点必填

parent 3ca08b6a
......@@ -37,5 +37,6 @@ class MarketingException extends BaseException
19 => '当前活动不存在',
self::TAKE_PLACE_NOT_EXIST => '自提点不存在',
21 => "活动开始时间不能大于或者等雨结束时间",
22 => "自提点不能为空",
];
}
\ No newline at end of file
......@@ -507,6 +507,9 @@ class MarketingService
if ($startTime >= $endTime) {
throw new MarketingException(['cus' => 21]);
}
if (empty($takePlaceIds)) {
throw new MarketingException(['cus' => 22]);
}
//重复判断
$marketing = Marketing::getRecord(["marketing_name" => $marketingName], ["marketing_id"]);
......@@ -661,6 +664,9 @@ class MarketingService
if ($startTime >= $endTime) {
throw new MarketingException(['cus' => 21]);
}
if (empty($takePlaceIds)) {
throw new MarketingException(['cus' => 22]);
}
//获取商品的最大最小值
$skuInfoList = PindanGoodsSku::getRecordMaster(["goods_sku_id" => $goodsSkuId]
......
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