|
@@ -195,6 +195,9 @@ public class GeminiServiceImpl implements GeminiService {
|
|
|
requestBody.put("size", size);
|
|
requestBody.put("size", size);
|
|
|
|
|
|
|
|
String res = HttpUtil.post(DOMAIN + "/carpage", requestBody.toString());
|
|
String res = HttpUtil.post(DOMAIN + "/carpage", requestBody.toString());
|
|
|
|
|
+ if (!JSONUtil.isJson(res)) {
|
|
|
|
|
+ res = res.substring(2,res.length()-1);
|
|
|
|
|
+ }
|
|
|
return JSONUtil.toBean(res, GeminiCarPageResponse.class);
|
|
return JSONUtil.toBean(res, GeminiCarPageResponse.class);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.error("调用Gemini /carpage 接口失败: {}", StringUtil.getErrorText(e));
|
|
log.error("调用Gemini /carpage 接口失败: {}", StringUtil.getErrorText(e));
|