Browse Source

移除对冠影,河南、黑龙江、辽宁公众号的支持

刘韬 5 years ago
parent
commit
d8fb08e4f5

+ 21 - 36
PacsOnline_Wechat_Patient/src/main/java/com/zskk/common/ZskkConfig.java

@@ -117,52 +117,37 @@ public class ZskkConfig extends JFinalConfig {
 		 * 2:false采用明文模式,同时也支持混合模式
 		 */
 		ac_zskk.setEncryptMessage(Boolean.FALSE);
+		ApiConfigKit.putApiConfig(ac_zskk);
+
 
 		/**
 		 * 多个公众号时,重复调用ApiConfigKit.putApiConfig(ac)依次添加即可,第一个添加的是默认。
 		 */
 		// 黑龙江省电子胶片平台
-		ApiConfigKit.putApiConfig(ac_zskk);
-		ApiConfig ac_hlj = new ApiConfig();
-		ac_hlj.setToken(PropKit.get("token_hlj"));
-		ac_hlj.setAppId(PropKit.get("appId_hlj"));
-		ac_hlj.setAppSecret(PropKit.get("appSecret_hlj"));
-		ac_hlj.setEncryptMessage(Boolean.FALSE);
-		ApiConfigKit.putApiConfig(ac_hlj);
+//		ApiConfigKit.putApiConfig(ac_zskk);
+//		ApiConfig ac_hlj = new ApiConfig();
+//		ac_hlj.setToken(PropKit.get("token_hlj"));
+//		ac_hlj.setAppId(PropKit.get("appId_hlj"));
+//		ac_hlj.setAppSecret(PropKit.get("appSecret_hlj"));
+//		ac_hlj.setEncryptMessage(Boolean.FALSE);
+//		ApiConfigKit.putApiConfig(ac_hlj);
 		
-		ApiConfigKit.putApiConfig(ac_zskk);
-
-		// guanying
-		ApiConfig ac_zskk2 = new ApiConfig();
-		ac_zskk2.setToken(PropKit.get("token_zskk2"));
-		ac_zskk2.setAppId(PropKit.get("appId_zskk2"));
-		ac_zskk2.setAppSecret(PropKit.get("appSecret_zskk2"));
-		ac_zskk2.setEncryptMessage(Boolean.FALSE);
-		ApiConfigKit.putApiConfig(ac_zskk2);
 
 		// 辽宁省电子胶片平台
-		ApiConfig ac_ln = new ApiConfig();
-		ac_ln.setToken(PropKit.get("token_ln"));
-		ac_ln.setAppId(PropKit.get("appId_ln"));
-		ac_ln.setAppSecret(PropKit.get("appSecret_ln"));
-		ac_ln.setEncryptMessage(Boolean.FALSE);
-		ApiConfigKit.putApiConfig(ac_ln);
+//		ApiConfig ac_ln = new ApiConfig();
+//		ac_ln.setToken(PropKit.get("token_ln"));
+//		ac_ln.setAppId(PropKit.get("appId_ln"));
+//		ac_ln.setAppSecret(PropKit.get("appSecret_ln"));
+//		ac_ln.setEncryptMessage(Boolean.FALSE);
+//		ApiConfigKit.putApiConfig(ac_ln);
 
 		// 河南省电子胶片平台
-		ApiConfig ac_hn = new ApiConfig();
-		ac_hn.setToken(PropKit.get("token_hn"));
-		ac_hn.setAppId(PropKit.get("appId_hn"));
-		ac_hn.setAppSecret(PropKit.get("appSecret_hn"));
-		ac_hn.setEncryptMessage(Boolean.FALSE);
-		ApiConfigKit.putApiConfig(ac_hn);
-
-		// ceshi
-//		ApiConfig ac_cs = new ApiConfig();
-//		ac_cs.setToken(PropKit.get("token_cs"));
-//		ac_cs.setAppId(PropKit.get("appId_cs"));
-//		ac_cs.setAppSecret(PropKit.get("appSecret_cs"));
-//		ac_ln.setEncryptMessage(Boolean.FALSE);
-//		ApiConfigKit.putApiConfig(ac_cs);
+//		ApiConfig ac_hn = new ApiConfig();
+//		ac_hn.setToken(PropKit.get("token_hn"));
+//		ac_hn.setAppId(PropKit.get("appId_hn"));
+//		ac_hn.setAppSecret(PropKit.get("appSecret_hn"));
+//		ac_hn.setEncryptMessage(Boolean.FALSE);
+//		ApiConfigKit.putApiConfig(ac_hn);
 
 		/**
 		 * 1.9 新增LocalTestTokenCache用于本地和线上同时使用一套appId时避免本地将线上AccessToken冲掉

+ 0 - 6
PacsOnline_Wechat_Patient/src/main/resources/config.properties

@@ -4,12 +4,6 @@ user     = pacs_pro
 password = Zskk@2019~!@#
 devMode  = true
 
-
-#Wechat-ZhongShiKangKaiDianZiJiaoPianPingTai
-appId_zskk2    = wx6a54bf0e98ecd2c7
-appSecret_zskk2= f4b4e2b054d84157565ace97a43275e8
-token_zskk2    = zhongshikangkai2019
-
 #Wechat-ZhongShiKangKaiDianZiJiaoPianPingTai
 appId_zskk    = wx1f3dc2c37dce641b
 appSecret_zskk= 013c469bbd9e892a693f3375fdf4537e