2
0
mirror of https://gitee.com/hotlcc/wechat4j.git synced 2025-12-26 11:59:53 +08:00

[update] WebWeixinApi改为WebWeixinApiUtil工具类方式

This commit is contained in:
Allen
2019-04-16 16:46:03 +08:00
committed by lichangchun
parent 31f84b62bf
commit 9302b2e68c
4 changed files with 83 additions and 95 deletions

View File

@@ -1,6 +1,5 @@
import com.alibaba.fastjson.JSONObject;
import com.hotlcc.wechat4j.Wechat;
import com.hotlcc.wechat4j.api.WebWeixinApi;
import com.hotlcc.wechat4j.handler.ReceivedMsgHandler;
import com.hotlcc.wechat4j.model.ReceivedMsg;
import com.hotlcc.wechat4j.model.UserInfo;
@@ -16,8 +15,6 @@ public class TestClass {
@Before
public void initAndLogin() {
wechat = new Wechat();
WebWeixinApi api = new WebWeixinApi();
wechat.setWebWeixinApi(api);
wechat.addReceivedMsgHandler(new ReceivedMsgHandler() {
@Override
public void handleAllType(Wechat wechat, ReceivedMsg msg) {