物品创建校验修复

This commit is contained in:
2026-02-24 16:46:34 +08:00
parent 144fa72075
commit fb8f87dd5f
2 changed files with 0 additions and 10 deletions
-9
View File
@@ -8,27 +8,18 @@ class InvItemValidate extends Validate
{
// 规则
protected $rule = [
'id' => 'require|integer',
];
// 提示
protected $message = [
'id.require' => '物品ID不能为空',
'id.integer' => '物品ID必须为整数',
];
// 场景
protected $scene = [
'store' => [
'id',
],
'update' => [
'id',
],
'qrCode' => [
'id',
],
];
}