Commit bf0749ac by 朱继来

添加导入校验

parent 9978c4f5
Showing with 5 additions and 0 deletions
...@@ -859,6 +859,11 @@ Class AddOrderController extends Controller ...@@ -859,6 +859,11 @@ Class AddOrderController extends Controller
return; return;
} }
if (preg_match('/\./', $val['num'])) {
$err[] = '第'.($key+1).'行,商品数量格式错误,请填写整数';
return;
}
foreach ($val as $k=>$v) { foreach ($val as $k=>$v) {
if (in_array($k, $required_keys)) { if (in_array($k, $required_keys)) {
if (empty($v)) { // 若必填项值为空,返回提示信息 if (empty($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