1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user