@ -253,7 +253,7 @@ public class CustomerService {
Map<String, Object> mini = new HashMap<>();
mini.put("title", welcome.getContent());
mini.put("pic_media_id", param.getLimitLower());
mini.put("app_id", param.getDefaultVal());
mini.put("appid", param.getDefaultVal());
mini.put("page", param.getDescription());
returnValue.put("miniprogram", mini);
}
@ -283,7 +283,7 @@ public class Test {
@org.junit.Test
public void media() throws WxErrorException, IOException {
WxCpServiceOkHttpImpl serviceOkHttp = WxCpConfiguration.getCpService(WxCpConfiguration.APPLICATIONID);
File file = serviceOkHttp.getMediaService().download("3X4c2rhaeR1CoQG7v-KFRy-aVHwhc5lR_IpvfB6iu4fY");
File file = serviceOkHttp.getMediaService().download("3N3ngOGNqcU7VZZUzYORc-r4gjP5Sjt2XawdhSwN6qyVYXyDg2rOFwu-pnxKJGNuA");
File targetPath = new File("upload/");
if (!targetPath.exists()) {
boolean state = targetPath.mkdirs();