Commit 78ddb7e7 by 徐高华

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

Feature/自建应用验证

See merge request !1217
parents 2ed6c4f9 555aef3f
...@@ -109,7 +109,16 @@ public class WxEnterpriseDTO implements Serializable { ...@@ -109,7 +109,16 @@ public class WxEnterpriseDTO implements Serializable {
private String wxCorpid ; private String wxCorpid ;
private String openCorpid ; private String openCorpid ;
private String wxaAppid ; private String wxaAppid ;
private String urlHost ;
public String getUrlHost() {
return urlHost;
}
public void setUrlHost(String urlHost) {
this.urlHost = urlHost;
}
public String getWxaAppid() { public String getWxaAppid() {
return wxaAppid; return wxaAppid;
} }
......
...@@ -111,9 +111,11 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService { ...@@ -111,9 +111,11 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
qw.setThirdCorpid(wxEnterprise.getWxCorpid()); qw.setThirdCorpid(wxEnterprise.getWxCorpid());
qw.setMemberCorpid(wxEnterprise.getWxCorpid()); qw.setMemberCorpid(wxEnterprise.getWxCorpid());
TabSecretSetting secret = secretSettingMapper.getSecretSetting(wxEnterpriseId, SecretTypeEnum.SELF_APP.getVal(), null); TabSecretSetting secret = secretSettingMapper.getSecretSetting(wxEnterpriseId, SecretTypeEnum.SELF_APP.getVal(), null);
qw.setSelfSecret(secret.getSecretVal()); if(null != secret) {
qw.setAgentId(secret.getAgentId()); qw.setSelfSecret(secret.getSecretVal());
qw.setAgentName(secret.getAgentName()); qw.setAgentId(secret.getAgentId());
qw.setAgentName(secret.getAgentName());
}
qw.setSelfAppid(wxEnterprise.getWxaAppid()); qw.setSelfAppid(wxEnterprise.getWxaAppid());
} }
qw.setHbWxaAppid(this.getHbAppid(qw, config.getAppid())); qw.setHbWxaAppid(this.getHbAppid(qw, config.getAppid()));
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from tab_haoban_wx_enterprise from tab_haoban_wx_enterprise
where wxa_appid = #{appid} and wx_security_type = 5 where wxa_appid = #{appid} and wx_security_type = 5 and status_flag = 1
</select> </select>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise"> <insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise">
......
...@@ -209,7 +209,7 @@ public class WxEnterpriseController extends WebBaseController { ...@@ -209,7 +209,7 @@ public class WxEnterpriseController extends WebBaseController {
desc = "(第三方明文,代开密文)" ; desc = "(第三方明文,代开密文)" ;
} }
if(wxType==5) { if(wxType==5) {
desc = " (自建) " ; desc = " (自建 "+wxEnterpriseDTO.getWxaAppid() +"/" + wxEnterpriseDTO.getUrlHost()+") " ;
} }
int newType = this.wxEnterpriseApiService.calcSecretType(wxEnterpriseId) ; int newType = this.wxEnterpriseApiService.calcSecretType(wxEnterpriseId) ;
String diff = ""; String diff = "";
......
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