1.提交缺失的东西
This commit is contained in:
@ -50,6 +50,10 @@ class CartLogic
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($info) {
|
if ($info) {
|
||||||
|
if($goods_num + $info['goods_num'] > 2 || $goods_num >2){
|
||||||
|
return '每单限额两套';
|
||||||
|
}
|
||||||
|
|
||||||
//购物车内已有该商品
|
//购物车内已有该商品
|
||||||
$update_data = [
|
$update_data = [
|
||||||
'goods_num' => $goods_num + $info['goods_num'],
|
'goods_num' => $goods_num + $info['goods_num'],
|
||||||
|
|||||||
@ -926,9 +926,17 @@ class OrderLogic extends LogicBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function getYuyueTime($data){
|
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")
|
return Db::name("order_yuyetime")
|
||||||
->where("store_id",$data['store_id'])
|
->where("store_id",$data['store_id'])
|
||||||
->order("start_time","asc")
|
->order($time)
|
||||||
->select()
|
->select()
|
||||||
->toArray();
|
->toArray();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user