feat: #10000 日志目标类型增加goods

This commit is contained in:
赵世界 2022-08-11 15:22:50 +08:00
parent a47657619d
commit ee6e1fa09f

View File

@ -42,7 +42,7 @@ class Log extends Model
'file' => '文件',
];
return $map[$value];
return $map[$value] ?? $value;
}
public function getActionAttribute($value)
@ -54,7 +54,7 @@ class Log extends Model
'DELETE' => '删除',
];
return $map[$value];
return $map[$value] ?? $value;
}
public function getTargetTypeAttribute($value)
@ -73,7 +73,7 @@ class Log extends Model
'goods' => '商品',
];
return $map[$value];
return $map[$value] ?? $value;
}
public function getTargetFieldAttribute($value)
@ -91,7 +91,7 @@ class Log extends Model
'inventory' => '库存盘点',
];
return $map[$value];
return $map[$value] ?? $value;
}
public function setUserIdAttribute($value)