1
0
mirror of synced 2026-02-23 14:37:59 +08:00

🆕 #1831 生成小程序二维码的相关接口增加指定文件路径参数的重载方法

This commit is contained in:
gentryhuang
2020-11-01 08:59:59 +08:00
committed by GitHub
parent aa26d6b2e4
commit e6a550dc70
4 changed files with 256 additions and 2 deletions

View File

@@ -55,4 +55,22 @@ public class WxMaQrcodeServiceImplTest {
final byte[] wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimitBytes("111", null, 122, true, null, false);
assertThat(wxCode).isNotNull();
}
@Test
public void testCreateQrcodeByFile() throws WxErrorException {
final File qrCode = this.wxService.getQrcodeService().createQrcode("111", "/opt/logs");
assertThat(qrCode).isNotNull();
}
@Test
public void testCreateWxaCodeByFile() throws WxErrorException {
final File wxCode = this.wxService.getQrcodeService().createWxaCode("111", "/opt/logs");
assertThat(wxCode).isNotNull();
}
@Test
public void testCreateQrcodeUnlimitByFile() throws WxErrorException {
final File wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimit("111",null,"/opt/logs");
assertThat(wxCode).isNotNull();
}
}