|
|
@@ -526,11 +526,11 @@ public class AppUserController extends BaseApiController {
|
|
|
public Result uploadPicture(HttpServletRequest req, String sign) {
|
|
|
Result res = new Result();
|
|
|
AttachmentType attachmentType = AttachmentType.getField(sign);
|
|
|
- if (attachmentType == AttachmentType.ACHIEVEMENT_TECHNICAL_PICTURE
|
|
|
- || attachmentType == AttachmentType.ACHIEVEMENT_MATURITY_PICTURE
|
|
|
- || attachmentType == AttachmentType.ACHIEVEMENT_COVER_PICTURE) {
|
|
|
+ if (attachmentType == AttachmentType.ACHIEVEMENT_TECHNICAL_PICTURE) {
|
|
|
res.setData(handleFiles(res, "/achievement/", false, req, sign, "achievement"));
|
|
|
- } else {
|
|
|
+ } else if (attachmentType==AttachmentType.DEMAND_PICTURE){
|
|
|
+ res.setData(handleFiles(res, "/demand/", false, req, sign, "demand"));
|
|
|
+ }else {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "附件标示"));
|
|
|
}
|
|
|
return res;
|