mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-03 04:13:37 +08:00
优化部分代码
This commit is contained in:
parent
71ba078768
commit
5f9c813b4e
@ -205,7 +205,7 @@ public abstract class BaseWxCpServiceImpl<H, P> implements WxCpService, RequestH
|
||||
JsonObject jsonObject = new JsonObject();
|
||||
jsonObject.addProperty("corpid", corpId);
|
||||
jsonObject.addProperty("provider_secret", providerSecret);
|
||||
return WxCpProviderToken.fromJson(this.post(this.configStorage.getApiUrl(GET_PROVIDER_TOKEN), jsonObject.toString()));
|
||||
return WxCpProviderToken.fromJson(this.post(this.configStorage.getApiUrl(Tp.GET_PROVIDER_TOKEN), jsonObject.toString()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -21,7 +21,6 @@ public final class WxCpApiPathConsts {
|
||||
public static final String BATCH_GET_RESULT = "/cgi-bin/batch/getresult?jobid=";
|
||||
public static final String JSCODE_TO_SESSION = "/cgi-bin/miniprogram/jscode2session";
|
||||
public static final String GET_TOKEN = "/cgi-bin/gettoken?corpid=%s&corpsecret=%s";
|
||||
public static final String GET_PROVIDER_TOKEN = "/cgi-bin/service/get_provider_token";
|
||||
|
||||
public static class Agent {
|
||||
public static final String AGENT_GET = "/cgi-bin/agent/get?agentid=%d";
|
||||
@ -88,6 +87,7 @@ public final class WxCpApiPathConsts {
|
||||
public static final String GET_CORP_TOKEN = "/cgi-bin/service/get_corp_token";
|
||||
public static final String GET_PERMANENT_CODE = "/cgi-bin/service/get_permanent_code";
|
||||
public static final String GET_SUITE_TOKEN = "/cgi-bin/service/get_suite_token";
|
||||
public static final String GET_PROVIDER_TOKEN = "/cgi-bin/service/get_provider_token";
|
||||
}
|
||||
|
||||
public static class User {
|
||||
|
@ -144,7 +144,7 @@ public interface WxMaSubscribeService {
|
||||
}
|
||||
|
||||
@Data
|
||||
class PubTemplateKeyword{
|
||||
class PubTemplateKeyword {
|
||||
private int kid;
|
||||
private String name;
|
||||
private String example;
|
||||
|
Loading…
Reference in New Issue
Block a user