mirror of
				https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
				synced 2025-11-01 02:46:19 +08:00 
			
		
		
		
	use yaml to configure lang
This commit is contained in:
		| @@ -1,28 +0,0 @@ | ||||
| package love.sola.netsupport.sql; | ||||
|  | ||||
| import java.sql.Connection; | ||||
| import java.sql.ResultSet; | ||||
| import java.sql.SQLException; | ||||
| import java.sql.Statement; | ||||
| import java.util.Map; | ||||
|  | ||||
| /** | ||||
|  * *********************************************** | ||||
|  * Created by Sola on 2015/11/30. | ||||
|  * Don't modify this source without my agreement | ||||
|  * *********************************************** | ||||
|  */ | ||||
| public class TableLang extends SQLCore { | ||||
|  | ||||
| 	public static void getLang(Map<String, String> lang) { | ||||
| 		try (Connection conn = ds.getConnection()) { | ||||
| 			Statement st = conn.createStatement(); | ||||
| 			ResultSet rs = st.executeQuery("SELECT * FROM lang;"); | ||||
| 			while (rs.next()) { | ||||
| 				lang.put(rs.getString("lkey"), rs.getString("lvalue")); | ||||
| 			} | ||||
| 		} catch (SQLException e) { | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Sola
					Sola