1.提交缺失的东西

This commit is contained in:
2025-09-04 15:55:03 +08:00
parent 6062156d73
commit 8dc361b564
2 changed files with 13 additions and 1 deletions

View File

@ -50,6 +50,10 @@ class CartLogic
}
if ($info) {
if($goods_num + $info['goods_num'] > 2 || $goods_num >2){
return '每单限额两套';
}
//购物车内已有该商品
$update_data = [
'goods_num' => $goods_num + $info['goods_num'],

View File

@ -926,9 +926,17 @@ class OrderLogic extends LogicBase
}
public static function getYuyueTime($data){
$time = "TIME(
CONCAT(
LPAD(SUBSTRING_INDEX(start_time, ':', 1), 2, '0'),
':',
LPAD(SUBSTRING_INDEX(start_time, ':', -1), 2, '0'),
':00'
)
)";
return Db::name("order_yuyetime")
->where("store_id",$data['store_id'])
->order("start_time","asc")
->order($time)
->select()
->toArray();
}