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