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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user