小程序参数有其它非String类型的值需要设置

例如check_path:false
This commit is contained in:
Milo 2023-10-05 19:15:34 +08:00
parent 23182106b9
commit 7523481be0

View File

@ -109,7 +109,7 @@ public class WechatMpCodeUtil {
shortLink = shortLinkService.queryShortLinks(shortLink).get(0);
}
String accessToken = wechatAccessTokenUtil.cgiAccessToken(ClientTypeEnum.WECHAT_MP);
Map<String, String> params = new HashMap<>(4);
Map<String, Object> params = new HashMap<>(4);
params.put("page", page);
params.put("scene", shortLink.getId());
params.put("width", "280");