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