Skip to content

Commit

Permalink
修复5秒超时问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwanglin committed Jan 20, 2023
1 parent 6fa5298 commit 6614492
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ public Response<WxSubMsgResponseDTO> answer(WxSubMsgDTO wxSubMsgDTO) {
WxSubMsgResponseDTO wxSubMsgResponseDTO = wxSubMsgDTO.toResponse();
wxSubMsgResponseDTO.setMsgType(WxMsgTypeEnum.TEXT.getName());
String result = runTimeResponse.getResultString();
if(result.length() > 1180) {
result = result.substring(0,1180);
result = result+"\n【路线太长,不展示了,先走一会吧】";
}
result = result + "\n\n公众号:旺仔小蚂蚁";
wxSubMsgResponseDTO.setContent(result);
localCache.put(content, result);
Expand Down

0 comments on commit 6614492

Please sign in to comment.