Commit bf0749ac by 朱继来

添加导入校验

parent 9978c4f5
Showing with 5 additions and 0 deletions
......@@ -858,6 +858,11 @@ Class AddOrderController extends Controller
$err[] = '第'.($key+1).'行,商品数量等于或小于0';
return;
}
if (preg_match('/\./', $val['num'])) {
$err[] = '第'.($key+1).'行,商品数量格式错误,请填写整数';
return;
}
foreach ($val as $k=>$v) {
if (in_array($k, $required_keys)) {
......
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