Commit 48135289 by 徐高华

test

parent ff83c1d1
...@@ -11,6 +11,7 @@ import java.util.Map; ...@@ -11,6 +11,7 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -35,7 +36,7 @@ import com.gic.thirdparty.cloudfile.pojo.ImageCloudFileInfo; ...@@ -35,7 +36,7 @@ import com.gic.thirdparty.cloudfile.pojo.ImageCloudFileInfo;
@RestController @RestController
public class UploadController extends WebBaseController { public class UploadController extends WebBaseController {
private static org.apache.logging.log4j.Logger logger = LogManager.getLogger(StoreController.class);
@Autowired @Autowired
private QQCloudPicService qqCloudPicService; private QQCloudPicService qqCloudPicService;
@Autowired @Autowired
...@@ -103,10 +104,11 @@ public class UploadController extends WebBaseController { ...@@ -103,10 +104,11 @@ public class UploadController extends WebBaseController {
if (uploadInfo != null) { if (uploadInfo != null) {
map.put("qcloudImageUrl", uploadInfo.getOrgFileUrl()); map.put("qcloudImageUrl", uploadInfo.getOrgFileUrl());
map.put("imageFiledCode", "imageFiledCode"); map.put("imageFiledCode", "imageFiledCode");
} logger.info(uploadInfo instanceof ImageCloudFileInfo);
if(uploadInfo instanceof ImageCloudFileInfo) { if(uploadInfo instanceof ImageCloudFileInfo) {
uploadInfo = (ImageCloudFileInfo) uploadInfo ; ImageCloudFileInfo info = (ImageCloudFileInfo) uploadInfo ;
map.put("compressFileUrl", ((ImageCloudFileInfo) uploadInfo).getCompressFileUrl()); map.put("compressFileUrl", info.getCompressFileUrl());
}
} }
picList.add(map); picList.add(map);
file.deleteOnExit(); file.deleteOnExit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment