Commit 49d33e7b authored by 刘小敏's avatar 刘小敏

fix(commission/agent): 修复非图片类型字段空值校验逻辑

调整参数校验逻辑,仅在非图片类型字段为空时抛出不能为空的错误提示
parent 409629bc
......@@ -101,7 +101,7 @@ class Agent extends Commission
foreach ($form as &$item) {
if (!empty($data[$item['name']])) {
$item['value'] = $data[$item['name']];
} else {
} else if ($item['type'] !== 'image') {
$this->error($item['name'] . '不能为空');
}
}
......
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 to comment