刘韬 5 лет назад
Родитель
Сommit
5abd4ae6b6

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

@@ -149,7 +149,7 @@ public class ZskkConfig extends JFinalConfig {
 //          String onLineTokenUrl = "http://localhost/weixin/api/getToken";
 //          ApiConfigKit.setAccessTokenCache(new LocalTestTokenCache(onLineTokenUrl));
 //      }
-//		ServiceFactory.init();
+		ServiceFactory.init();
 
 	}
 

+ 9 - 9
PacsOnline_Wechat_Doctor/src/main/java/com/zskk/service/SmsService.java

@@ -25,15 +25,15 @@ import com.zskk.model._MappingKit;
 import com.zskk.util.ErrorConstant;
 
 public class SmsService {
-	
-	static {
-//		PropKit.use("config.properties");
-		DruidPlugin druidPlugin = new DruidPlugin("jdbc:mysql://117.50.71.166:7001/pacsonline_pro?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull", "pacs_pro", "Zskk@2019~!@#");
-		ActiveRecordPlugin arp = new ActiveRecordPlugin(druidPlugin); 
-		druidPlugin.start();
-		_MappingKit.mapping(arp);
-		arp.start();
-	}
+//	
+//	static {
+////		PropKit.use("config.properties");
+//		DruidPlugin druidPlugin = new DruidPlugin("jdbc:mysql://117.50.71.166:7001/pacsonline_pro?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull", "pacs_pro", "Zskk@2019~!@#");
+//		ActiveRecordPlugin arp = new ActiveRecordPlugin(druidPlugin); 
+//		druidPlugin.start();
+//		_MappingKit.mapping(arp);
+//		arp.start();
+//	}
 	
 	public Boolean sendSmsCode(String phone) {
 		DefaultProfile profile = DefaultProfile.getProfile("cn-beijing", "LTAImzRGKfWaL7Vi", "GjWdd2cdHtbQkhhnhSxNbw0QChKD98");