|
|
@@ -13,7 +13,9 @@ import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.goafanti.common.model.JtNews;
|
|
|
+import com.goafanti.common.utils.*;
|
|
|
import com.goafanti.news.bo.InputJtNews;
|
|
|
import com.goafanti.news.bo.OutJtNews;
|
|
|
import com.goafanti.news.service.EventPlanningService;
|
|
|
@@ -41,12 +43,6 @@ import com.goafanti.common.model.User;
|
|
|
import com.goafanti.common.service.DistrictGlossoryService;
|
|
|
import com.goafanti.common.service.FieldGlossoryService;
|
|
|
import com.goafanti.common.service.IndustryCategoryService;
|
|
|
-import com.goafanti.common.utils.LoggerUtils;
|
|
|
-import com.goafanti.common.utils.MobileMessageUtils;
|
|
|
-import com.goafanti.common.utils.PasswordUtil;
|
|
|
-import com.goafanti.common.utils.PictureUtils;
|
|
|
-import com.goafanti.common.utils.TimeUtils;
|
|
|
-import com.goafanti.common.utils.VerifyCodeUtils;
|
|
|
import com.goafanti.core.mybatis.JDBCIdGenerator;
|
|
|
import com.goafanti.core.mybatis.page.Pagination;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
@@ -902,6 +898,21 @@ public class PublicController extends BaseController {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ @RequestMapping(value = "/selectChat",method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public Result selectChat (String text){
|
|
|
+ Result res=new Result();
|
|
|
+ Map<String,Object> params=new HashMap();
|
|
|
+ List<String> list =new ArrayList<>();
|
|
|
+ params.put("priors",list);
|
|
|
+ params.put("text",text);
|
|
|
+ JSONObject jsonObject = HttpUtils.httpPost("https://www.sciradar.com/gw/chat/chat/stream", params);
|
|
|
+ System.out.println(jsonObject.toJSONString());
|
|
|
+ return res.data(jsonObject.toJSONString());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 删除Html标签
|
|
|
*/
|