Commit 17e3d17e by 徐高华

Merge branch 'feature/自建应用验证' into 'developer'

好办小程序id

See merge request !1192
parents 3e74bec3 2d29d276
...@@ -22,6 +22,15 @@ public class WxEnterpriseQwDTO implements Serializable { ...@@ -22,6 +22,15 @@ public class WxEnterpriseQwDTO implements Serializable {
private String selfSecret ; private String selfSecret ;
// 自建请求地址 // 自建请求地址
private String urlHost ; private String urlHost ;
private String selfAppid ;
public String getSelfAppid() {
return selfAppid;
}
public void setSelfAppid(String selfAppid) {
this.selfAppid = selfAppid;
}
public String getUrlHost() { public String getUrlHost() {
return urlHost; return urlHost;
......
...@@ -112,6 +112,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService { ...@@ -112,6 +112,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
qw.setSelfSecret(secret.getSecretVal()); qw.setSelfSecret(secret.getSecretVal());
qw.setAgentId(secret.getAgentId()); qw.setAgentId(secret.getAgentId());
qw.setAgentName(secret.getAgentName()); qw.setAgentName(secret.getAgentName());
qw.setSelfAppid(wxEnterprise.getWxaAppid());
} }
logger.info("企微所有corpid信息={}",JSON.toJSON(qw)); logger.info("企微所有corpid信息={}",JSON.toJSON(qw));
return qw; return qw;
......
...@@ -11,4 +11,12 @@ public class QwUtils { ...@@ -11,4 +11,12 @@ public class QwUtils {
} }
return secret; return secret;
} }
public static String getHbAppid(WxEnterpriseQwDTO qwDTO, String thirdAppid) {
String appid = thirdAppid;
if (qwDTO.isSelf()) {
appid = qwDTO.getSelfAppid();
}
return appid;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment