Commit 49985b68 by 朱继来

调整导入验证

parent 48620242
Showing with 1 additions and 1 deletions
...@@ -823,7 +823,7 @@ Class AddOrderController extends Controller ...@@ -823,7 +823,7 @@ Class AddOrderController extends Controller
} }
// 自营ID、采购数量和单价为数字类型 // 自营ID、采购数量和单价为数字类型
if ($k == 'id' || $k == 'num' || $k == 'goods_price') { if (($type == 2 && $k == 'id') || $k == 'num' || $k == 'goods_price') {
if (!preg_match('/\d/', $v)) { if (!preg_match('/\d/', $v)) {
$err[] = $required[$k].'列,第'.$key.'行格式错误'; $err[] = $required[$k].'列,第'.$key.'行格式错误';
break; break;
......
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