1.提交缺失的东西
This commit is contained in:
@ -98,7 +98,9 @@ class CartLogic
|
||||
if (self::checkStock($cart['item_id'], $goods_num)) {
|
||||
return '很抱歉,库存不足';
|
||||
}
|
||||
|
||||
if($cart['goods_num'] >= 2){
|
||||
return '每单限额两套';
|
||||
}
|
||||
if ($goods_num <= 0) {
|
||||
$goods_num = 1;
|
||||
}
|
||||
|
||||
@ -926,7 +926,11 @@ class OrderLogic extends LogicBase
|
||||
}
|
||||
|
||||
public static function getYuyueTime($data){
|
||||
return Db::name("order_yuyetime")->where("store_id",$data['store_id'])->select()->toArray();
|
||||
return Db::name("order_yuyetime")
|
||||
->where("store_id",$data['store_id'])
|
||||
->order("start_time","asc")
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user