刘韬 2 tahun lalu
induk
melakukan
8af8cfee38

+ 15 - 15
PacsOnline_Wechat_Doctor/src/main/java/com/zskk/common/ZskkConfig.java

@@ -111,30 +111,30 @@ public class ZskkConfig extends JFinalConfig {
 		// TODO Auto-generated method stub
 		super.onStart();
 		// 支持redis存储access_token、js_ticket,需要先启动RedisPlugin
-		ApiConfigKit.setAccessTokenCache(new RedisAccessTokenCache("weixin_doctor"));
-		// 中世康恺电子胶片平台
-		ApiConfig ac_zskk = new ApiConfig();
-		// 配置微信 API 相关参数
-		ac_zskk.setToken(PropKit.get("token_zskk"));
-		ac_zskk.setAppId(PropKit.get("appId_zskk"));
-		ac_zskk.setAppSecret(PropKit.get("appSecret_zskk"));
+//		ApiConfigKit.setAccessTokenCache(new RedisAccessTokenCache("weixin_doctor"));
+//		// 中世康恺电子胶片平台
+//		ApiConfig ac_zskk = new ApiConfig();
+//		// 配置微信 API 相关参数
+//		ac_zskk.setToken(PropKit.get("token_zskk"));
+//		ac_zskk.setAppId(PropKit.get("appId_zskk"));
+//		ac_zskk.setAppSecret(PropKit.get("appSecret_zskk"));
 
 		/**
 		 * 是否对消息进行加密,对应于微信平台的消息加解密方式: 1:true进行加密且必须配置 encodingAesKey
 		 * 2:false采用明文模式,同时也支持混合模式
 		 */
-		ac_zskk.setEncryptMessage(Boolean.FALSE);
+//		ac_zskk.setEncryptMessage(Boolean.FALSE);
 
 		/**
 		 * 多个公众号时,重复调用ApiConfigKit.putApiConfig(ac)依次添加即可,第一个添加的是默认。
 		 */
 		
-		ApiConfigKit.putApiConfig(ac_zskk);
-
-		WxaConfig wc = new WxaConfig();
-        wc.setAppId(PropKit.get("appId_xtzd"));
-        wc.setAppSecret(PropKit.get("appSecret_xtzd"));
-        WxaConfigKit.setWxaConfig(wc);
+//		ApiConfigKit.putApiConfig(ac_zskk);
+//
+//		WxaConfig wc = new WxaConfig();
+//        wc.setAppId(PropKit.get("appId_xtzd"));
+//        wc.setAppSecret(PropKit.get("appSecret_xtzd"));
+//        WxaConfigKit.setWxaConfig(wc);
 
 		/**
 		 * 1.9 新增LocalTestTokenCache用于本地和线上同时使用一套appId时避免本地将线上AccessToken冲掉
@@ -153,7 +153,7 @@ public class ZskkConfig extends JFinalConfig {
 //          String onLineTokenUrl = "http://localhost/weixin/api/getToken";
 //          ApiConfigKit.setAccessTokenCache(new LocalTestTokenCache(onLineTokenUrl));
 //      }
-		ServiceFactory.init();
+//		ServiceFactory.init();
 
 	}