chore: sync release updates
This commit is contained in:
@@ -43,7 +43,7 @@ class WarehouseWorkbenchController
|
||||
{
|
||||
$evidenceService = new AppraisalEvidenceService();
|
||||
try {
|
||||
$asset = $evidenceService->upload($request);
|
||||
$asset = $evidenceService->upload($request, 'file', 'warehouse_inbound_evidence');
|
||||
if (!in_array((string)($asset['file_type'] ?? ''), ['image', 'video'], true)) {
|
||||
$evidenceService->delete((string)($asset['file_url'] ?? ''));
|
||||
return api_error('拆包附件仅支持上传图片或视频', 422);
|
||||
@@ -59,7 +59,7 @@ class WarehouseWorkbenchController
|
||||
{
|
||||
$evidenceService = new AppraisalEvidenceService();
|
||||
try {
|
||||
$asset = $evidenceService->upload($request);
|
||||
$asset = $evidenceService->upload($request, 'file', 'warehouse_return_packing');
|
||||
if (!in_array((string)($asset['file_type'] ?? ''), ['image', 'video'], true)) {
|
||||
$evidenceService->delete((string)($asset['file_url'] ?? ''));
|
||||
return api_error('打包装箱附件仅支持上传图片或视频', 422);
|
||||
|
||||
Reference in New Issue
Block a user