@Test public void testCommit() throws Exception { String themeColor = "#0074d9"; String themeFontColor = "#ffffff"; Map<String, Object> ext = new HashMap<>(); ext.put("appName", "xxx"); ext.put("verified", true); ext.put("navigationBarBackgroundColor", themeColor); ext.put("navigationBarTextStyle", themeFontColor); ext.put("companyId", 4128); ext.put("companyFullName", "xxx有限公司"); WxMaCodeService wxMaCodeService = wxService.getCodeService(); WxMaCodeCommitRequest commitRequest = WxMaCodeCommitRequest .builder() .templateId(6L) .userVersion("v0.1.0") .userDesc("init") .extConfig(WxMaCodeExtConfig.builder() .extAppid(wxMaConfig.getAppid()) .extEnable(true) .ext(ext) .window( WxMaCodeExtConfig.PageConfig .builder() .navigationBarBackgroundColor(themeColor) .navigationBarTextStyle(themeFontColor) .build() ) .build()) .build(); wxMaCodeService.commit(commitRequest); }
@Override public void commit(WxMaCodeCommitRequest commitRequest) throws WxErrorException { this.wxMaService.post(COMMIT_URL, commitRequest.toJson()); }
WxMaCodeServiceImpl implements WxMaCodeService { @Override public void commit(WxMaCodeCommitRequest commitRequest) throws WxErrorException { this.wxMaService.post(COMMIT_URL, commitRequest.toJson()); } }
WxMaCodeServiceImpl implements WxMaCodeService { @Override public void commit(WxMaCodeCommitRequest commitRequest) throws WxErrorException { this.wxMaService.post(COMMIT_URL, commitRequest.toJson()); } WxMaCodeServiceImpl(WxMaService wxMaService); }
WxMaCodeServiceImpl implements WxMaCodeService { @Override public void commit(WxMaCodeCommitRequest commitRequest) throws WxErrorException { this.wxMaService.post(COMMIT_URL, commitRequest.toJson()); } WxMaCodeServiceImpl(WxMaService wxMaService); @Override void commit(WxMaCodeCommitRequest commitRequest); @Override byte[] getQrCode(); @Override List<WxMaCategory> getCategory(); @Override List<String> getPage(); @Override long submitAudit(WxMaCodeSubmitAuditRequest auditRequest); @Override WxMaCodeAuditStatus getAuditStatus(long auditId); @Override WxMaCodeAuditStatus getLatestAuditStatus(); @Override void release(); @Override void changeVisitStatus(String action); @Override void revertCodeRelease(); @Override WxMaCodeVersionDistribution getSupportVersion(); @Override void setSupportVersion(String version); @Override void undoCodeAudit(); }
WxMaCodeServiceImpl implements WxMaCodeService { @Override public void commit(WxMaCodeCommitRequest commitRequest) throws WxErrorException { this.wxMaService.post(COMMIT_URL, commitRequest.toJson()); } WxMaCodeServiceImpl(WxMaService wxMaService); @Override void commit(WxMaCodeCommitRequest commitRequest); @Override byte[] getQrCode(); @Override List<WxMaCategory> getCategory(); @Override List<String> getPage(); @Override long submitAudit(WxMaCodeSubmitAuditRequest auditRequest); @Override WxMaCodeAuditStatus getAuditStatus(long auditId); @Override WxMaCodeAuditStatus getLatestAuditStatus(); @Override void release(); @Override void changeVisitStatus(String action); @Override void revertCodeRelease(); @Override WxMaCodeVersionDistribution getSupportVersion(); @Override void setSupportVersion(String version); @Override void undoCodeAudit();  }