🆕 #1831 生成小程序二维码的相关接口增加指定文件路径参数的重载方法
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user