1
This commit is contained in:
@@ -2,10 +2,13 @@ package com.ruoyi.web.controller.jarvis;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author Leo
|
||||
@@ -22,12 +25,13 @@ public class JDOrderController {
|
||||
|
||||
|
||||
|
||||
@RequestMapping("/generatePromotionContent")
|
||||
public String generatePromotionContent(String promotionContent) {
|
||||
@PostMapping("/generatePromotionContent")
|
||||
public String generatePromotionContent(@RequestBody Map<String, String> requestBody) {
|
||||
String promotionContent = requestBody.get("promotionContent");
|
||||
System.out.println(promotionContent);
|
||||
String result = "";
|
||||
try {
|
||||
String url = requestUrl+ "generatePromotionContent";
|
||||
String url = requestUrl + "generatePromotionContent";
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("skey", skey);
|
||||
param.put("promotionContent", promotionContent);
|
||||
|
||||
Reference in New Issue
Block a user