Commit ff854114 authored by shiyu's avatar shiyu

获取token地址修改

parent c588cce3
......@@ -6,7 +6,7 @@ dts:
mch-id: 1538666666
mch-key: 1538xxxxxx-1538xxxxxx-1538xxxxxx
notify-url: https://test.dtsshop.com/demo/order/dtsNotify
get-access-token-url: POST https://api.weixin.qq.com/cgi-bin/stable_token
get-access-token-url: https://api.weixin.qq.com/cgi-bin/stable_token
#公众号消息点击后跳转到小程序页面的链接
......
......@@ -13,6 +13,7 @@ import com.wwdz.ch.db.dao.UserDao;
import com.wwdz.ch.db.domain.AiAssistant;
import com.wwdz.ch.db.domain.User;
import com.wwdz.ch.db.dto.request.AiAssistantRequestDto;
import com.wwdz.ch.wx.manager.WxLoginManager;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -47,6 +48,9 @@ public class ChatApiTest {
@Autowired
RedisUtils redisUtils;
@Autowired
WxLoginManager wxLoginManager;
@Test
public void chatWithModel() {
String question = "伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟小伟伟";
......@@ -141,4 +145,10 @@ public class ChatApiTest {
System.out.println(redisUtils.getExpire("AI-DEFAULT-QUESTION:269"));
}
@Test
public void gettoken(){
wxLoginManager.refreshAccessToken();
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment