file('file'); $type = $request->input('type'); ThrowException::isTrue(!MaterialScene::hasValue($type, false), '类型不对'); $data = $materialService->upload($file, $this->customerId(), $type, UserType::CUSTOMER); return $this->jsonSuccess($data); } }