1
0
mirror of synced 2025-12-19 23:08:13 +08:00

🎨 【小程序】获取小程序码的createWxaCode相关接口支持envVersion参数

This commit is contained in:
Binary Wang
2022-03-01 15:47:28 +08:00
parent 533ea253d6
commit abaec2faf9
6 changed files with 71 additions and 50 deletions

View File

@@ -1,13 +1,13 @@
package cn.binarywang.wx.miniapp.api.impl;
import java.io.File;
import org.testng.annotations.*;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.test.ApiTestModule;
import com.google.inject.Inject;
import me.chanjar.weixin.common.error.WxErrorException;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import java.io.File;
import static org.assertj.core.api.Assertions.assertThat;
@@ -46,7 +46,7 @@ public class WxMaQrcodeServiceImplTest {
@Test
public void testCreateWxaCodeBytes() throws WxErrorException {
final byte[] wxCode = this.wxService.getQrcodeService().createWxaCodeBytes("111", 122, true, null, false);
final byte[] wxCode = this.wxService.getQrcodeService().createWxaCodeBytes("111", null, 122, true, null, false);
assertThat(wxCode).isNotNull();
}
@@ -70,7 +70,7 @@ public class WxMaQrcodeServiceImplTest {
@Test
public void testCreateQrcodeUnlimitByFile() throws WxErrorException {
final File wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimit("111",null,"/opt/logs");
final File wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimit("111", null, "/opt/logs");
assertThat(wxCode).isNotNull();
}
}