This commit is contained in:
雷欧(林平凡)
2025-08-15 16:48:43 +08:00
parent 37fc0697b3
commit 26c2b51d72

View File

@@ -8,11 +8,13 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
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;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @author Leo * @author Leo
@@ -40,12 +42,13 @@ public class JDInnerController {
} }
@RequestMapping("/generatePromotionContent") @RequestMapping("/generatePromotionContent")
public HashMap<String, List<String>> generatePromotionContent(String message,String skey) { public HashMap<String, List<String>> generatePromotionContent(@RequestBody Map<String, String> requestBody) {
loo String promotionContent = requestBody.get("promotionContent");
logger.info("generatePromotionContent message:{}", promotionContent);
if (!checkSkey(skey)) { if (!checkSkey(skey)) {
return null; return null;
} }
return jdProductService.generatePromotionContent(message); return jdProductService.generatePromotionContent(promotionContent);
} }
} }