1
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package com.ruoyi.web.controller.jarvis;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.http.HttpUtils;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -26,9 +26,8 @@ public class JDOrderController {
|
||||
|
||||
|
||||
@PostMapping("/generatePromotionContent")
|
||||
public String generatePromotionContent(@RequestBody Map<String, String> requestBody) {
|
||||
public AjaxResult generatePromotionContent(@RequestBody Map<String, String> requestBody) {
|
||||
String promotionContent = requestBody.get("promotionContent");
|
||||
System.out.println(promotionContent);
|
||||
String result = "";
|
||||
try {
|
||||
String url = requestUrl + "generatePromotionContent";
|
||||
@@ -36,10 +35,9 @@ public class JDOrderController {
|
||||
param.put("skey", skey);
|
||||
param.put("promotionContent", promotionContent);
|
||||
result = HttpUtils.sendJsonPost(url, param.toJSONString());
|
||||
System.out.println(result);
|
||||
} catch (Exception e) {
|
||||
System.out.println(e.getMessage());
|
||||
}
|
||||
return result;
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user