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

🐛 #2973 【小程序】修改获取url link接口请求类中的expireTime属性类型为Long

This commit is contained in:
The Wolf Chasing Dreams
2023-04-10 15:21:37 +08:00
committed by GitHub
parent 43a3a1e5a0
commit e0e03d82ff
2 changed files with 5 additions and 1 deletions

View File

@@ -10,6 +10,9 @@ import me.chanjar.weixin.common.error.WxErrorException;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import java.time.LocalDateTime;
import java.time.ZoneId;
@Test
@Guice(modules = ApiTestModule.class)
@Slf4j
@@ -21,6 +24,7 @@ public class WxMaLinkServiceImplTest {
public void testGenerateUrlLink() throws WxErrorException {
String url = this.wxMaService.getLinkService().generateUrlLink(GenerateUrlLinkRequest.builder()
.path("pages/tabBar/home/home")
.expireTime(LocalDateTime.now().plusDays(5).atZone(ZoneId.systemDefault()).toEpochSecond()) //增加有效期,此行可注释
.build());
System.out.println(url);