Commit 001bb210 by yao.xiao

修改-富文本出参

parent c25203fc
package com.yd.api.agms; package com.yd.api.agms;
import com.alibaba.fastjson.JSON;
import com.yd.api.agms.service.*; import com.yd.api.agms.service.*;
import com.yd.api.agms.service.AgmsDashboardService; import com.yd.api.agms.service.AgmsDashboardService;
import com.yd.api.agms.service.AgmsFortuneService; import com.yd.api.agms.service.AgmsFortuneService;
...@@ -294,8 +295,11 @@ public class AgmsController { ...@@ -294,8 +295,11 @@ public class AgmsController {
} }
@RequestMapping(value="/controller") @RequestMapping(value="/controller")
public Object controller(@RequestParam String action,@RequestParam(value = "upfile",required = false) MultipartFile upfile) { public Object controller(@RequestParam String action, @RequestParam(required = false) String callback, @RequestParam(value = "upfile",required = false) MultipartFile upfile) {
ControllerResponseVO responseVO = agmsSharingService.controller(action, upfile); ControllerResponseVO responseVO = agmsSharingService.controller(action, upfile);
if ("config".equals(action)) {
return callback +"(" + JSON.toJSONString(responseVO) + ")";
}
return responseVO; return responseVO;
} }
/** /**
......
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