Commit 816d531e by 朱继来

添加数量校验

parent bfd97ada
Showing with 6 additions and 0 deletions
......@@ -817,6 +817,12 @@ Class AddOrderController extends Controller
if ($type == 1 && $val['goods_price'] <= 0) {
$err[] = '第'.$key.'行,商品单价等于或小于0';
return;
}
if ($val['num'] <= 0) {
$err[] = '第'.$key.'行,商品数量等于或小于0';
return;
}
foreach ($val as $k=>$v) {
......
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 sign in to comment