2
0
mirror of https://gitee.com/hotlcc/wechat4j.git synced 2025-12-26 03:49:38 +08:00

提交代码

This commit is contained in:
hotlcc
2018-07-25 11:03:59 +08:00
parent 03bbe2d858
commit 83e9411bcd
10 changed files with 550 additions and 57 deletions

View File

@@ -1,35 +0,0 @@
import com.hotlcc.wechat4j.Wechat;
import com.hotlcc.wechat4j.api.WebWeixinApi;
import com.hotlcc.wechat4j.util.QRCodeUtil;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.FileInputStream;
import java.io.IOException;
public class TestClass {
private static Logger logger = LoggerFactory.getLogger(TestClass.class);
public void test03() throws IOException {
BufferedImage image = ImageIO.read(new FileInputStream("D:/2.jpg"));
System.out.println(QRCodeUtil.toCharMatrix(image));
}
public void test04() {
WebWeixinApi api = new WebWeixinApi();
Wechat wechat = new Wechat();
wechat.setWebWeixinApi(api);
wechat.test();
}
@Test
public void test05() {
WebWeixinApi api = new WebWeixinApi();
Wechat wechat = new Wechat();
wechat.setWebWeixinApi(api);
System.out.println(wechat.autoLogin());
}
}