|
@@ -30,8 +30,8 @@ public class CreativeTitleServiceImpl implements ICreativeTitleService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public JSONArray titleSuggestion(String firstCategory, String secondCategory, String keywords) {
|
|
|
|
- if (Check.isNull(keywords)) {
|
|
|
|
|
|
+ public JSONArray titleSuggestion(String firstCategory, String secondCategory, String keyword) {
|
|
|
|
+ if (Check.isNull(keyword)) {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -40,9 +40,7 @@ public class CreativeTitleServiceImpl implements ICreativeTitleService {
|
|
Map<String, Object> paramsMap = new HashMap<>();
|
|
Map<String, Object> paramsMap = new HashMap<>();
|
|
paramsMap.put("first_category", firstCategory);
|
|
paramsMap.put("first_category", firstCategory);
|
|
paramsMap.put("second_category", secondCategory);
|
|
paramsMap.put("second_category", secondCategory);
|
|
- JSONObject json = new JSONObject();
|
|
|
|
- json.put("keywords", keywords);
|
|
|
|
- paramsMap.put("params", json);
|
|
|
|
|
|
+ paramsMap.put("keyword", keyword);
|
|
|
|
|
|
String result = HttpUtils.httpGet("https://cc.oceanengine.com/creative_center_server/api/title/title_suggestion", paramsMap, headers);
|
|
String result = HttpUtils.httpGet("https://cc.oceanengine.com/creative_center_server/api/title/title_suggestion", paramsMap, headers);
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|