feat: 添加静态资源文件和实体类
添加了多个图片、音频文件和CSS样式文件,包括QQ、微信相关图片和游戏素材。同时新增了跟进方式实体类gjfs.java和路径工具类PathUtils.java,用于项目功能扩展。 [新增文件包括] - 图片资源:qq.png, wx.png, logo.jpg等 - 游戏素材:bg.png, CRM.png等 - 实体类:com/xzw/entity/gjfs.java - 工具类:com/xzw/utils/PathUtils.java
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# 数据库服务器IP
|
||||
SERVERIP=127.0.01
|
||||
# 数据库端口
|
||||
PORT=3306
|
||||
# 数据库名
|
||||
DatabaseName=mycrm
|
||||
# 数据库用户名
|
||||
USER=root
|
||||
# 数据库密码
|
||||
PWD=baison
|
||||
@@ -0,0 +1,101 @@
|
||||
|
||||
package servlets;
|
||||
/*
|
||||
*
|
||||
* PDA获取授权状态
|
||||
*
|
||||
*
|
||||
* */
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
import java.sql.Connection;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
public class Expire extends HttpServlet {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Expire() {
|
||||
}
|
||||
|
||||
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
||||
response.setContentType("text/json");
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
PrintWriter out = response.getWriter();
|
||||
JSONObject jobj = new JSONObject();
|
||||
dbconn dbconn = new dbconn();
|
||||
Connection con = dbconn.con;
|
||||
JSONArray data = null;
|
||||
String EID = request.getParameter("ID");
|
||||
String PRODUCT = request.getParameter("PRODUCT");
|
||||
System.out.println(dbconn.formatDate + " " + EID + "获取"+PRODUCT+"授权状态");
|
||||
String Ssql = "";
|
||||
|
||||
try {
|
||||
Ssql = "SELECT A.NAME AS KHMC,EID,STATE,JZSJ,EIDVERSION,PRODUCT FROM tb_pda,tb_kehu A "
|
||||
+ " WHERE KHID=A.ID AND MEID='"+EID+"' AND PRODUCT='"+PRODUCT+"'";
|
||||
data = dbconn.query3(Ssql, con, new String[0]);
|
||||
//System.out.println(data);
|
||||
//获取当前时间
|
||||
Date date =new Date();
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
String nowdate = df.format(date);
|
||||
|
||||
|
||||
|
||||
|
||||
if(data.length() == 1) {
|
||||
|
||||
JSONObject jsonObject = data.getJSONObject(0);
|
||||
String state = jsonObject.getString("STATE");
|
||||
String jzsj = jsonObject.getString("JZSJ");
|
||||
|
||||
int result = nowdate.compareTo(jzsj);
|
||||
|
||||
if (result < 0) {
|
||||
if(state.equals("0")) {
|
||||
//更新最近在线时间
|
||||
String sql = "update tb_pda set LastSJ = '"+nowdate+"' where MEID ='"+EID+"' AND PRODUCT='"+PRODUCT+"'";
|
||||
dbconn.update(sql, con, new String[0]);
|
||||
|
||||
jobj.put("result", "0");
|
||||
jobj.put("message", "该设备授权正常");
|
||||
}else {
|
||||
jobj.put("result", "1");
|
||||
jobj.put("message", "授权停止,请联系服务商");
|
||||
}
|
||||
}else {
|
||||
jobj.put("result", "3");
|
||||
jobj.put("message", "授权过期,请联系服务商");
|
||||
}
|
||||
}else {
|
||||
jobj.put("result", "-1");
|
||||
jobj.put("message", "设备未授权");
|
||||
}
|
||||
} catch (JSONException var17) {
|
||||
JSONException e = var17;
|
||||
|
||||
try {
|
||||
jobj.put("result", 1);
|
||||
jobj.put("message", e);
|
||||
} catch (JSONException var16) {
|
||||
var16.printStackTrace();
|
||||
}
|
||||
|
||||
var17.printStackTrace();
|
||||
System.out.println(var17);
|
||||
} finally {
|
||||
dbconn.closeAll();
|
||||
}
|
||||
|
||||
out.print(jobj.toString());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
|
||||
package servlets;
|
||||
/*
|
||||
*
|
||||
* PDA获取授权码
|
||||
*
|
||||
*
|
||||
* */
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
import java.sql.Connection;
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
public class IMEI extends HttpServlet {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public IMEI() {
|
||||
}
|
||||
|
||||
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
||||
response.setContentType("text/json");
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
PrintWriter out = response.getWriter();
|
||||
JSONObject jobj = new JSONObject();
|
||||
dbconn dbconn = new dbconn();
|
||||
Connection con = dbconn.con;
|
||||
JSONArray data = null;
|
||||
String EID = request.getParameter("ID");
|
||||
String PRODUCT = request.getParameter("PRODUCT");
|
||||
System.out.println(dbconn.formatDate + " " + EID + "获取"+PRODUCT+"授权码信息");
|
||||
String Ssql = "";
|
||||
|
||||
try {
|
||||
Ssql = "SELECT A.NAME AS KHMC,EID,STATE,JZSJ,EIDVERSION,PRODUCT FROM tb_pda,tb_kehu A "
|
||||
+ " WHERE KHID=A.ID AND MEID='"+EID+"' AND PRODUCT='"+PRODUCT+"'";
|
||||
data = dbconn.query3(Ssql, con, new String[0]);
|
||||
//System.out.println(data);
|
||||
jobj.put("result", data);
|
||||
} catch (JSONException var17) {
|
||||
JSONException e = var17;
|
||||
|
||||
try {
|
||||
jobj.put("result", 0);
|
||||
jobj.put("message", e);
|
||||
} catch (JSONException var16) {
|
||||
var16.printStackTrace();
|
||||
}
|
||||
|
||||
var17.printStackTrace();
|
||||
System.out.println(var17);
|
||||
} finally {
|
||||
dbconn.closeAll();
|
||||
}
|
||||
|
||||
out.print(jobj.toString());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,946 @@
|
||||
package servlets;
|
||||
/**
|
||||
|
||||
* @author 作者 ZhiwenXie:
|
||||
|
||||
* @version 创建时间:2021年10月28日 下午12:46:51
|
||||
|
||||
* 类说明
|
||||
|
||||
*/
|
||||
|
||||
import com.jcraft.jsch.JSch;
|
||||
import com.jcraft.jsch.Session;
|
||||
import java.awt.EventQueue;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.ResultSetMetaData;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Properties;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
public class dbconn {
|
||||
public static String ServerVersion = "20211105";
|
||||
public Connection con = null;
|
||||
public PreparedStatement ps = null;
|
||||
public ResultSet rs = null;
|
||||
public static String DRIVER = "com.mysql.jdbc.Driver";
|
||||
public static String SQLITEDRIVER = "org.sqlite.JDBC";
|
||||
private static String DB = null;
|
||||
private static String SERVERIP = null;
|
||||
private static String url = null;
|
||||
private static String PORT = null;
|
||||
public static String DatabaseName = null;
|
||||
public static String URL = null;
|
||||
private static String USER = null;
|
||||
private static String PWD = null;
|
||||
private static String characterEncoding = null;
|
||||
public static String Version = null;
|
||||
public static String ApkName = null;
|
||||
public static String AutoUpdate = null;
|
||||
public static String DLYHSD = null;
|
||||
public static String IPOSURL = null;
|
||||
public static String YYK = null;
|
||||
public static String PayEnable = null;
|
||||
public static String isPlanClearData = null;
|
||||
public static String SPCX = null;
|
||||
public static String XZMS = null;
|
||||
public static String TCANYC = null;
|
||||
public static String FKCKZ = null;
|
||||
public static String SJFW = null;
|
||||
public static String DJXS = null;
|
||||
public static String PDDSLXG = null;
|
||||
public static String SDSRSLTX = null;
|
||||
public static String JCDZDQR = null;
|
||||
public static String PHTCDZDQR = null;
|
||||
public static String HDTCDZDQR = null;
|
||||
public static String YHSQDZDQR = null;
|
||||
public static String THSQDZDQR = null;
|
||||
public static String PDDZDQR = null;
|
||||
public static String JCDDPDAMS = null;
|
||||
public static String TCTZDTCMS = null;
|
||||
public static String KCCX = null;
|
||||
public static String JCANXS = null;
|
||||
public static String JCURL = null;
|
||||
public static String QYPCGL = null;
|
||||
public static String GLYMM = null;
|
||||
public static String PDYC = null;
|
||||
public static String TCYC = null;
|
||||
public static String JCYC = null;
|
||||
public static String KCCXYC = null;
|
||||
public static String SPGGTYKZ = null;
|
||||
public static String JCDTCMS = null;
|
||||
public static String AXSH = null;
|
||||
public static String SJKC = null;
|
||||
public static String WYMCH = null;
|
||||
public static String WYMKZ = null;
|
||||
public static String forbidWrite = null;
|
||||
public static String TSPZ = null;
|
||||
public static String TCDQXKZ = null;
|
||||
public static String DWHS = null;
|
||||
public static String XZJYDJBH = null;
|
||||
public static String KCCXHQCXJ = null;
|
||||
public static String QYTMDZBPCXZ = null;
|
||||
public static String BOARD_SHOW = null;
|
||||
public static String BOARD_TIME_SPAN = null;
|
||||
public static String ControlScanLighting = null;
|
||||
public static String CXJK = null;
|
||||
public String formatDate = null;
|
||||
Statement sqlStatement = null;
|
||||
private Connection conn = null;
|
||||
private static String QYSSH = null;
|
||||
private static String SSHIP = null;
|
||||
private static String SSHPort = null;
|
||||
private static String SSHUser = null;
|
||||
private static String SSHPassword = null;
|
||||
public static String XZZL = null;
|
||||
public static String PayURL = null;
|
||||
public static String PayApp_id = null;
|
||||
public static String vipTimeSign = null;
|
||||
public static String PayKey = null;
|
||||
public static String PayStore_no = null;
|
||||
public static String PayPrinter = null;
|
||||
public static String PayPrivateKey = null;
|
||||
public static String CRM_httpHead = null;
|
||||
public static String CRM_appKey = null;
|
||||
public static String CRM_groupId = null;
|
||||
public static String CRM_appSecret = null;
|
||||
|
||||
public dbconn() {
|
||||
this.initComponents();
|
||||
}
|
||||
|
||||
public void initComponents() {
|
||||
this.LoadProperties();
|
||||
new SimpleDateFormat("dd/MM/yyyy");
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
|
||||
Date date = new Date();
|
||||
this.formatDate = sdf.format(date);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
EventQueue.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static void updateProperties() {
|
||||
Properties props = new Properties();
|
||||
props.setProperty("SERVERIP", SERVERIP);
|
||||
props.setProperty("url", url);
|
||||
props.setProperty("PORT", PORT);
|
||||
props.setProperty("USER", USER);
|
||||
props.setProperty("PWD", PWD);
|
||||
props.setProperty("ServerVersion", ServerVersion);
|
||||
props.setProperty("DatabaseName", DatabaseName);
|
||||
|
||||
try {
|
||||
FileOutputStream fos = new FileOutputStream((new File("")).getAbsolutePath() + "/Config.properties");
|
||||
props.store(fos, (String)null);
|
||||
fos.close();
|
||||
FileInputStream fis = new FileInputStream((new File("")).getAbsolutePath() + "/Config.properties");
|
||||
props.clear();
|
||||
props.load(fis);
|
||||
fis.close();
|
||||
} catch (IOException var3) {
|
||||
System.err.println("属性文件更新错误");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void LoadProperties() {
|
||||
Properties p = new Properties();
|
||||
InputStream inputStream = this.getClass().getResourceAsStream("Config.properties");
|
||||
|
||||
try {
|
||||
p.load(inputStream);
|
||||
} catch (IOException var4) {
|
||||
var4.printStackTrace();
|
||||
}
|
||||
|
||||
SERVERIP = p.getProperty("SERVERIP");
|
||||
url = p.getProperty("url");
|
||||
PORT = p.getProperty("PORT");
|
||||
DatabaseName = p.getProperty("DatabaseName");
|
||||
USER = p.getProperty("USER");
|
||||
PWD = p.getProperty("PWD");
|
||||
DB = p.getProperty("DB");
|
||||
characterEncoding = p.getProperty("characterEncoding");
|
||||
if (characterEncoding == null) {
|
||||
characterEncoding = "utf-8";
|
||||
}
|
||||
|
||||
URL = "jdbc:mysql://" + SERVERIP + ":" + PORT + "/" + DatabaseName + "?useUnicode=true&characterEncoding=" + characterEncoding;
|
||||
if (DB != null && DB.equals("4")) {
|
||||
URL = "jdbc:sqlite://e:/tim/YsPos.db";
|
||||
}
|
||||
|
||||
Version = p.getProperty("Version");
|
||||
ApkName = p.getProperty("ApkName");
|
||||
AutoUpdate = p.getProperty("AutoUpdate");
|
||||
IPOSURL = p.getProperty("IPOSURL");
|
||||
YYK = p.getProperty("YYK");
|
||||
PayEnable = p.getProperty("PayEnable");
|
||||
isPlanClearData = p.getProperty("isPlanClearData");
|
||||
SPCX = p.getProperty("SPCX");
|
||||
XZMS = p.getProperty("XZMS");
|
||||
TCANYC = p.getProperty("TCANYC");
|
||||
FKCKZ = p.getProperty("FKCKZ");
|
||||
Version = p.getProperty("Version");
|
||||
DLYHSD = p.getProperty("DLYHSD");
|
||||
AXSH = p.getProperty("AXSH");
|
||||
SJKC = p.getProperty("SJKC");
|
||||
WYMCH = p.getProperty("WYMCH");
|
||||
WYMKZ = p.getProperty("WYMKZ");
|
||||
forbidWrite = p.getProperty("forbidWrite");
|
||||
if (DB == null) {
|
||||
DB = "0";
|
||||
}
|
||||
|
||||
if (FKCKZ == null) {
|
||||
FKCKZ = "0";
|
||||
}
|
||||
|
||||
SJFW = p.getProperty("SJFW");
|
||||
if (SJFW == null) {
|
||||
SJFW = "30";
|
||||
}
|
||||
|
||||
DJXS = p.getProperty("DJXS");
|
||||
if (DJXS == null) {
|
||||
DJXS = "0";
|
||||
}
|
||||
|
||||
JCDZDQR = p.getProperty("JCDZDQR");
|
||||
if (JCDZDQR == null) {
|
||||
JCDZDQR = "0";
|
||||
}
|
||||
|
||||
PHTCDZDQR = p.getProperty("PHTCDZDQR");
|
||||
if (PHTCDZDQR == null) {
|
||||
PHTCDZDQR = "0";
|
||||
}
|
||||
|
||||
HDTCDZDQR = p.getProperty("HDTCDZDQR");
|
||||
if (HDTCDZDQR == null) {
|
||||
HDTCDZDQR = "0";
|
||||
}
|
||||
|
||||
YHSQDZDQR = p.getProperty("YHSQDZDQR");
|
||||
if (YHSQDZDQR == null) {
|
||||
YHSQDZDQR = "0";
|
||||
}
|
||||
|
||||
THSQDZDQR = p.getProperty("THSQDZDQR");
|
||||
if (THSQDZDQR == null) {
|
||||
THSQDZDQR = "0";
|
||||
}
|
||||
|
||||
PDDZDQR = p.getProperty("PDDZDQR");
|
||||
if (PDDZDQR == null) {
|
||||
PDDZDQR = "0";
|
||||
}
|
||||
|
||||
PDDSLXG = p.getProperty("PDDSLXG");
|
||||
if (PDDSLXG == null) {
|
||||
PDDSLXG = "0";
|
||||
}
|
||||
|
||||
SDSRSLTX = p.getProperty("SDSRSLTX");
|
||||
if (SDSRSLTX == null) {
|
||||
SDSRSLTX = "0";
|
||||
}
|
||||
|
||||
KCCX = p.getProperty("KCCX");
|
||||
if (KCCX == null) {
|
||||
KCCX = "0";
|
||||
}
|
||||
|
||||
JCANXS = p.getProperty("JCANXS");
|
||||
if (JCANXS == null) {
|
||||
JCANXS = "0";
|
||||
}
|
||||
|
||||
JCURL = p.getProperty("JCURL");
|
||||
if (JCURL == null) {
|
||||
JCURL = "0";
|
||||
}
|
||||
|
||||
JCDDPDAMS = p.getProperty("JCDDPDAMS");
|
||||
if (JCDDPDAMS == null) {
|
||||
JCDDPDAMS = "0";
|
||||
}
|
||||
|
||||
QYPCGL = p.getProperty("QYPCGL");
|
||||
if (QYPCGL == null) {
|
||||
QYPCGL = "0";
|
||||
}
|
||||
|
||||
TCTZDTCMS = p.getProperty("TCTZDTCMS");
|
||||
if (TCTZDTCMS == null) {
|
||||
TCTZDTCMS = "0";
|
||||
}
|
||||
|
||||
GLYMM = p.getProperty("GLYMM");
|
||||
if (GLYMM == null) {
|
||||
GLYMM = "0";
|
||||
}
|
||||
|
||||
PDYC = p.getProperty("PDYC");
|
||||
if (PDYC == null) {
|
||||
PDYC = "0";
|
||||
}
|
||||
|
||||
JCYC = p.getProperty("JCYC");
|
||||
if (JCYC == null) {
|
||||
JCYC = "0";
|
||||
}
|
||||
|
||||
TCYC = p.getProperty("TCYC");
|
||||
if (TCYC == null) {
|
||||
TCYC = "0";
|
||||
}
|
||||
|
||||
KCCXYC = p.getProperty("KCCXYC");
|
||||
if (KCCXYC == null) {
|
||||
KCCXYC = "0";
|
||||
}
|
||||
|
||||
SPGGTYKZ = p.getProperty("SPGGTYKZ");
|
||||
if (SPGGTYKZ == null) {
|
||||
SPGGTYKZ = "0";
|
||||
}
|
||||
|
||||
JCDTCMS = p.getProperty("JCDTCMS");
|
||||
if (JCDTCMS == null) {
|
||||
JCDTCMS = "0";
|
||||
}
|
||||
|
||||
QYSSH = p.getProperty("QYSSH");
|
||||
if (QYSSH == null) {
|
||||
QYSSH = "0";
|
||||
}
|
||||
|
||||
SSHIP = p.getProperty("SSHIP");
|
||||
if (SSHIP == null) {
|
||||
SSHIP = "";
|
||||
}
|
||||
|
||||
SSHPort = p.getProperty("SSHPort");
|
||||
if (SSHPort == null) {
|
||||
SSHPort = "";
|
||||
}
|
||||
|
||||
SSHUser = p.getProperty("SSHUser");
|
||||
if (SSHUser == null) {
|
||||
SSHUser = "";
|
||||
}
|
||||
|
||||
SSHPassword = p.getProperty("SSHPassword");
|
||||
if (SSHPassword == null) {
|
||||
SSHPassword = "";
|
||||
}
|
||||
|
||||
ServerVersion = p.getProperty("Version");
|
||||
if (ServerVersion == null) {
|
||||
ServerVersion = "0";
|
||||
}
|
||||
|
||||
DLYHSD = p.getProperty("DLYHSD");
|
||||
if (DLYHSD == null) {
|
||||
DLYHSD = "0";
|
||||
}
|
||||
|
||||
AXSH = p.getProperty("AXSH");
|
||||
if (AXSH == null) {
|
||||
AXSH = "0";
|
||||
}
|
||||
|
||||
SJKC = p.getProperty("SJKC");
|
||||
if (SJKC == null) {
|
||||
SJKC = "0";
|
||||
}
|
||||
|
||||
WYMCH = p.getProperty("WYMCH");
|
||||
if (WYMCH == null) {
|
||||
WYMCH = "0";
|
||||
}
|
||||
|
||||
WYMKZ = p.getProperty("WYMKZ");
|
||||
if (WYMKZ == null) {
|
||||
WYMKZ = "0";
|
||||
}
|
||||
|
||||
forbidWrite = p.getProperty("forbidWrite");
|
||||
if (forbidWrite == null) {
|
||||
forbidWrite = "0";
|
||||
}
|
||||
|
||||
TSPZ = p.getProperty("TSPZ");
|
||||
if (TSPZ == null) {
|
||||
TSPZ = "";
|
||||
}
|
||||
|
||||
TCDQXKZ = p.getProperty("TCDQXKZ");
|
||||
if (TCDQXKZ == null) {
|
||||
TCDQXKZ = "";
|
||||
}
|
||||
|
||||
DWHS = p.getProperty("DWHS");
|
||||
if (DWHS == null) {
|
||||
DWHS = "0";
|
||||
}
|
||||
|
||||
XZJYDJBH = p.getProperty("XZJYDJBH");
|
||||
if (XZJYDJBH == null) {
|
||||
XZJYDJBH = "";
|
||||
}
|
||||
|
||||
XZZL = p.getProperty("XZZL");
|
||||
if (XZZL == null) {
|
||||
XZZL = "0";
|
||||
}
|
||||
|
||||
KCCXHQCXJ = p.getProperty("KCCXHQCXJ");
|
||||
if (KCCXHQCXJ == null) {
|
||||
KCCXHQCXJ = "0";
|
||||
}
|
||||
|
||||
QYTMDZBPCXZ = p.getProperty("QYTMDZBPCXZ");
|
||||
if (QYTMDZBPCXZ == null) {
|
||||
QYTMDZBPCXZ = "0";
|
||||
}
|
||||
|
||||
BOARD_SHOW = p.getProperty("BOARD_SHOW");
|
||||
if (BOARD_SHOW == null) {
|
||||
BOARD_SHOW = "0";
|
||||
}
|
||||
|
||||
BOARD_TIME_SPAN = p.getProperty("BOARD_TIME_SPAN");
|
||||
if (BOARD_TIME_SPAN == null) {
|
||||
BOARD_TIME_SPAN = "0";
|
||||
}
|
||||
|
||||
ControlScanLighting = p.getProperty("ControlScanLighting");
|
||||
if (ControlScanLighting == null) {
|
||||
ControlScanLighting = "0";
|
||||
}
|
||||
|
||||
CXJK = p.getProperty("CXJK");
|
||||
if (CXJK == null) {
|
||||
CXJK = "0";
|
||||
}
|
||||
|
||||
PayURL = p.getProperty("PayURL");
|
||||
if (PayURL == null) {
|
||||
PayURL = "";
|
||||
}
|
||||
|
||||
PayApp_id = p.getProperty("PayApp_id");
|
||||
if (PayApp_id == null) {
|
||||
PayApp_id = "";
|
||||
}
|
||||
|
||||
PayKey = p.getProperty("PayKey");
|
||||
if (PayKey == null) {
|
||||
PayKey = "";
|
||||
}
|
||||
|
||||
vipTimeSign = p.getProperty("vipTimeSign");
|
||||
if (vipTimeSign == null) {
|
||||
vipTimeSign = "";
|
||||
}
|
||||
|
||||
PayStore_no = p.getProperty("PayStore_no");
|
||||
if (PayStore_no == null) {
|
||||
PayStore_no = "";
|
||||
}
|
||||
|
||||
PayPrinter = p.getProperty("PayPrinter");
|
||||
if (PayPrinter == null) {
|
||||
PayPrinter = "0";
|
||||
}
|
||||
|
||||
PayPrivateKey = p.getProperty("PayPrivateKey");
|
||||
if (PayPrivateKey == null) {
|
||||
PayPrivateKey = "";
|
||||
}
|
||||
|
||||
CRM_httpHead = p.getProperty("CRM_httpHead");
|
||||
if (CRM_httpHead == null) {
|
||||
CRM_httpHead = "";
|
||||
}
|
||||
|
||||
CRM_appKey = p.getProperty("CRM_appKey");
|
||||
if (CRM_appKey == null) {
|
||||
CRM_appKey = "";
|
||||
}
|
||||
|
||||
CRM_groupId = p.getProperty("CRM_groupId");
|
||||
if (CRM_groupId == null) {
|
||||
CRM_groupId = "";
|
||||
}
|
||||
|
||||
CRM_appSecret = p.getProperty("CRM_appSecret");
|
||||
if (CRM_appSecret == null) {
|
||||
CRM_appSecret = "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public Connection getCon() {
|
||||
if (QYSSH != null && QYSSH.equals("1")) {
|
||||
go();
|
||||
}
|
||||
|
||||
if (this.conn == null) {
|
||||
try {
|
||||
if (DB.equals("4")) {
|
||||
Class.forName(SQLITEDRIVER);
|
||||
} else {
|
||||
Class.forName(DRIVER);
|
||||
}
|
||||
} catch (ClassNotFoundException var3) {
|
||||
var3.printStackTrace();
|
||||
}
|
||||
|
||||
try {
|
||||
DriverManager.setLoginTimeout(2);
|
||||
this.con = DriverManager.getConnection(URL, USER, PWD);
|
||||
} catch (SQLException var2) {
|
||||
System.out.print(var2);
|
||||
var2.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
return this.con;
|
||||
}
|
||||
|
||||
public void closeAll() {
|
||||
if (this.rs != null) {
|
||||
try {
|
||||
this.rs.close();
|
||||
} catch (SQLException var5) {
|
||||
System.out.print(var5);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.ps != null) {
|
||||
try {
|
||||
this.ps.close();
|
||||
} catch (SQLException var4) {
|
||||
System.out.print(var4);
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
if (this.con != null && !this.con.isClosed()) {
|
||||
try {
|
||||
this.con.close();
|
||||
} catch (SQLException var2) {
|
||||
System.out.print(var2);
|
||||
}
|
||||
}
|
||||
} catch (SQLException var3) {
|
||||
var3.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public String query(String sql, Connection con, String... pras) throws JSONException {
|
||||
JSONArray array = new JSONArray();
|
||||
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
if (pras != null) {
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setString(i + 1, pras[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.rs = this.ps.executeQuery();
|
||||
ResultSetMetaData metaData = this.rs.getMetaData();
|
||||
int columnCount = metaData.getColumnCount();
|
||||
|
||||
while(this.rs.next()) {
|
||||
JSONObject jsonObj = new JSONObject();
|
||||
|
||||
for(int i = 1; i <= columnCount; ++i) {
|
||||
String columnName = metaData.getColumnLabel(i);
|
||||
String value = this.rs.getString(columnName);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
}
|
||||
|
||||
jsonObj.put(columnName, value);
|
||||
}
|
||||
|
||||
array.put(jsonObj);
|
||||
}
|
||||
} catch (SQLException var11) {
|
||||
var11.printStackTrace();
|
||||
}
|
||||
|
||||
return array.toString();
|
||||
}
|
||||
|
||||
public String query1(String sql, Connection con, String... pras) {
|
||||
String value = null;
|
||||
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
if (pras != null) {
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setString(i + 1, pras[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.rs = this.ps.executeQuery();
|
||||
ResultSetMetaData metaData = this.rs.getMetaData();
|
||||
int columnCount = metaData.getColumnCount();
|
||||
|
||||
while(this.rs.next()) {
|
||||
for(int i = 1; i <= columnCount; ++i) {
|
||||
String columnName = metaData.getColumnLabel(i);
|
||||
value = this.rs.getString(columnName);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (SQLException var9) {
|
||||
var9.printStackTrace();
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
public String query2(String sql, Connection con, String... pras) {
|
||||
String value = null;
|
||||
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
if (pras != null) {
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setString(i + 1, pras[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.rs = this.ps.executeQuery();
|
||||
ResultSetMetaData metaData = this.rs.getMetaData();
|
||||
int columnCount = metaData.getColumnCount();
|
||||
|
||||
while(this.rs.next()) {
|
||||
for(int i = 1; i <= columnCount; ++i) {
|
||||
String columnName = metaData.getColumnLabel(i);
|
||||
value = this.rs.getString(columnName);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (SQLException var9) {
|
||||
var9.printStackTrace();
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
public JSONArray query3(String sql, Connection con, String... pras) throws JSONException {
|
||||
JSONArray array = new JSONArray();
|
||||
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
if (pras != null) {
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setString(i + 1, pras[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.rs = this.ps.executeQuery();
|
||||
ResultSetMetaData metaData = this.rs.getMetaData();
|
||||
int columnCount = metaData.getColumnCount();
|
||||
|
||||
while(this.rs.next()) {
|
||||
JSONObject jsonObj = new JSONObject();
|
||||
|
||||
for(int i = 1; i <= columnCount; ++i) {
|
||||
String columnName = metaData.getColumnLabel(i);
|
||||
String value = this.rs.getString(columnName);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
}
|
||||
|
||||
jsonObj.put(columnName, value);
|
||||
}
|
||||
|
||||
array.put(jsonObj);
|
||||
}
|
||||
} catch (SQLException var11) {
|
||||
var11.printStackTrace();
|
||||
}
|
||||
|
||||
return array;
|
||||
}
|
||||
|
||||
public Object query4(String sql, Connection con, String... pras) {
|
||||
Object value = null;
|
||||
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
if (pras != null) {
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setString(i + 1, pras[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.rs = this.ps.executeQuery();
|
||||
ResultSetMetaData metaData = this.rs.getMetaData();
|
||||
int columnCount = metaData.getColumnCount();
|
||||
|
||||
while(this.rs.next()) {
|
||||
for(int i = 1; i <= columnCount; ++i) {
|
||||
String columnName = metaData.getColumnLabel(i);
|
||||
value = this.rs.getString(columnName);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (SQLException var9) {
|
||||
var9.printStackTrace();
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
public String query5(String sql, Connection con, String... pras) {
|
||||
String value = null;
|
||||
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
if (pras != null) {
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setString(i + 1, pras[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.rs = this.ps.executeQuery();
|
||||
ResultSetMetaData metaData = this.rs.getMetaData();
|
||||
int columnCount = metaData.getColumnCount();
|
||||
|
||||
while(this.rs.next()) {
|
||||
for(int i = 1; i <= columnCount; ++i) {
|
||||
String columnName = metaData.getColumnLabel(i);
|
||||
value = this.rs.getString(columnName);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (SQLException var9) {
|
||||
var9.printStackTrace();
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
public JSONArray query6(String sql, Connection con, String... pras) throws JSONException {
|
||||
JSONArray array = new JSONArray();
|
||||
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
if (pras != null) {
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setString(i + 1, pras[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.rs = this.ps.executeQuery();
|
||||
ResultSetMetaData metaData = this.rs.getMetaData();
|
||||
int columnCount = metaData.getColumnCount();
|
||||
|
||||
while(this.rs.next()) {
|
||||
JSONObject jsonObj = new JSONObject();
|
||||
|
||||
for(int i = 1; i <= columnCount; ++i) {
|
||||
String columnName = metaData.getColumnLabel(i);
|
||||
String value = this.rs.getString(columnName);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
}
|
||||
|
||||
jsonObj.put(columnName, value);
|
||||
}
|
||||
|
||||
array.put(jsonObj);
|
||||
}
|
||||
} catch (SQLException var11) {
|
||||
var11.printStackTrace();
|
||||
}
|
||||
|
||||
return array;
|
||||
}
|
||||
|
||||
public ArrayList<String> query7(String sql, Connection con, String... pras) throws JSONException {
|
||||
ArrayList<String> List = new ArrayList();
|
||||
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
if (pras != null) {
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setString(i + 1, pras[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.rs = this.ps.executeQuery();
|
||||
ResultSetMetaData metaData = this.rs.getMetaData();
|
||||
int columnCount = metaData.getColumnCount();
|
||||
|
||||
while(this.rs.next()) {
|
||||
for(int i = 1; i <= columnCount; ++i) {
|
||||
String columnName = metaData.getColumnLabel(i);
|
||||
String value = this.rs.getString(columnName);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
}
|
||||
|
||||
List.add(value);
|
||||
}
|
||||
}
|
||||
} catch (SQLException var10) {
|
||||
var10.printStackTrace();
|
||||
}
|
||||
|
||||
return List;
|
||||
}
|
||||
|
||||
public int update(String sql, Connection con, String... pras) {
|
||||
int resu = 0;
|
||||
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setString(i + 1, pras[i]);
|
||||
}
|
||||
|
||||
resu = this.ps.executeUpdate();
|
||||
} catch (SQLException var6) {
|
||||
var6.printStackTrace();
|
||||
}
|
||||
|
||||
return resu;
|
||||
}
|
||||
|
||||
public int dbtest() {
|
||||
try {
|
||||
return this.getCon() != null ? 1 : -1;
|
||||
} catch (Exception var2) {
|
||||
var2.printStackTrace();
|
||||
System.out.println("连接数据库失败");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
public SQLException update1(String sql, Connection con, Object... pras) {
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
|
||||
for(int i = 0; i < pras.length; ++i) {
|
||||
this.ps.setObject(i + 1, pras[i]);
|
||||
}
|
||||
|
||||
this.ps.addBatch();
|
||||
this.ps.executeBatch();
|
||||
return null;
|
||||
} catch (SQLException var5) {
|
||||
System.out.println(var5);
|
||||
return var5;
|
||||
}
|
||||
}
|
||||
|
||||
public static void go() {
|
||||
try {
|
||||
JSch jsch = new JSch();
|
||||
Session session = jsch.getSession(SSHUser, SSHIP, Integer.parseInt(SSHPort));
|
||||
session.setPassword(SSHPassword);
|
||||
session.setConfig("StrictHostKeyChecking", "no");
|
||||
session.connect();
|
||||
System.out.println(session.getServerVersion());
|
||||
session.setPortForwardingL(Integer.parseInt(PORT), SERVERIP, Integer.parseInt(PORT));
|
||||
} catch (Exception var2) {
|
||||
var2.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public boolean update5(String sql, Connection con) {
|
||||
try {
|
||||
if (con == null) {
|
||||
con = this.getCon();
|
||||
}
|
||||
|
||||
this.ps = con.prepareStatement(sql);
|
||||
this.ps.executeUpdate();
|
||||
return true;
|
||||
} catch (SQLException var4) {
|
||||
System.out.println(var4);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package test;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintStream;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.nio.channels.FileChannel.MapMode;
|
||||
import java.security.MessageDigest;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
|
||||
public class MD5Utils {
|
||||
protected static char[] hexDigits = new char[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
||||
protected static MessageDigest messagedigest;
|
||||
|
||||
public static String getFileMD5String_old(File file) throws IOException {
|
||||
messagedigest.update(new FileInputStream(file).getChannel().map(MapMode.READ_ONLY, 0, file.length()));
|
||||
return bufferToHex(messagedigest.digest());
|
||||
}
|
||||
|
||||
public static String getFileMD5String(File file) throws IOException {
|
||||
FileInputStream fileInputStream = new FileInputStream(file);
|
||||
byte[] bArr = new byte[1024];
|
||||
while (true) {
|
||||
int read = fileInputStream.read(bArr);
|
||||
if (read > 0) {
|
||||
messagedigest.update(bArr, 0, read);
|
||||
} else {
|
||||
fileInputStream.close();
|
||||
return bufferToHex(messagedigest.digest());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
messagedigest = null;
|
||||
try {
|
||||
messagedigest = MessageDigest.getInstance("MD5");
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
PrintStream printStream = System.err;
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append(MD5Utils.class.getName());
|
||||
stringBuilder.append("初始化失败,MessageDigest不支持MD5Util。");
|
||||
printStream.println(stringBuilder.toString());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static void appendHexPair(byte b, StringBuffer stringBuffer) {
|
||||
char[] cArr = hexDigits;
|
||||
char c = cArr[(b & 240) >> 4];
|
||||
char c2 = cArr[b & 15];
|
||||
stringBuffer.append(c);
|
||||
stringBuffer.append(c2);
|
||||
}
|
||||
|
||||
public static String convertMD5(String str) {
|
||||
char[] toCharArray = str.toCharArray();
|
||||
for (int i = 0; i < toCharArray.length; i++) {
|
||||
toCharArray[i] = (char) (toCharArray[i] ^ 116);
|
||||
}
|
||||
return new String(toCharArray);
|
||||
}
|
||||
|
||||
private static String bufferToHex(byte[] bArr, int i, int i2) {
|
||||
StringBuffer stringBuffer = new StringBuffer(i2 * 2);
|
||||
i2 += i;
|
||||
while (i < i2) {
|
||||
appendHexPair(bArr[i], stringBuffer);
|
||||
i++;
|
||||
}
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
public static boolean checkPassword(String str, String str2) {
|
||||
return getMD5String(str).equals(str2);
|
||||
}
|
||||
|
||||
public static String getMD5String(byte[] bArr) {
|
||||
messagedigest.update(bArr);
|
||||
return bufferToHex(messagedigest.digest());
|
||||
}
|
||||
|
||||
private static String bufferToHex(byte[] bArr) {
|
||||
return bufferToHex(bArr, 0, bArr.length);
|
||||
}
|
||||
|
||||
public static String getMD5String(String str) {
|
||||
return getMD5String(str.getBytes());
|
||||
}
|
||||
|
||||
public static String getMD5String1(String str) throws UnsupportedEncodingException {
|
||||
return getMD5String(str.getBytes("UTF-8"));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package test;
|
||||
|
||||
public class VerifyUtil {
|
||||
public static String Verify_EFast365(String str, String str2) {
|
||||
StringBuffer stringBuffer = new StringBuffer(str2);
|
||||
if (str != null) {
|
||||
stringBuffer.append(str);
|
||||
}
|
||||
stringBuffer.append("BSAMDAQ");
|
||||
str = MD5Utils.getMD5String(stringBuffer.toString().toUpperCase()).toUpperCase();
|
||||
stringBuffer = new StringBuffer();
|
||||
int i = 0;
|
||||
while (i < str2.length()) {
|
||||
int i2 = i + 1;
|
||||
int i3 = i + 3;
|
||||
try {
|
||||
i3 = Integer.parseInt(str2.substring(i, i2));
|
||||
} catch (Exception unused) {
|
||||
}
|
||||
i += i3;
|
||||
if (i >= 30) {
|
||||
i = i3;
|
||||
}
|
||||
stringBuffer.append(str.substring(i, i + 1));
|
||||
i = i2;
|
||||
}
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package test;
|
||||
|
||||
import java.io.PrintStream;
|
||||
|
||||
public class XXX {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
|
||||
|
||||
//String trim ="0AD22AC2883CCAD111" ;
|
||||
|
||||
String Verify_EFast365 = VerifyUtil.Verify_EFast365(null, "963148617245693");
|
||||
//trim = trim.toUpperCase();
|
||||
PrintStream printStream = System.out;
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append(Verify_EFast365);
|
||||
//stringBuilder.append("===");
|
||||
//stringBuilder.append(trim);
|
||||
//stringBuilder.append("=======");
|
||||
printStream.println(stringBuilder.toString());
|
||||
/*if (Verify_EFast365.equals(trim)) {
|
||||
if (true) {
|
||||
System.out.println("true")
|
||||
}
|
||||
}
|
||||
toastMsg("验证码错误!");
|
||||
return false;
|
||||
}*/
|
||||
|
||||
//System.out.println(Verify_EFast365);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Class-Path:
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
|
||||
<display-name>MobileEncrypt</display-name>
|
||||
|
||||
<servlet>
|
||||
<description>This is the description of my J2EE component</description>
|
||||
<display-name>This is the display name of my J2EE component</display-name>
|
||||
<servlet-name>Sp_dalei</servlet-name>
|
||||
<servlet-class>servlets.Sp_dalei</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Sp_dalei</servlet-name>
|
||||
<url-pattern>/Sp_dalei</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<servlet>
|
||||
<description>This is the description of my J2EE component</description>
|
||||
<display-name>This is the display name of my J2EE component</display-name>
|
||||
<servlet-name>Expire</servlet-name>
|
||||
<servlet-class>servlets.Expire</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Expire</servlet-name>
|
||||
<url-pattern>/Expire</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<servlet>
|
||||
<description>This is the description of my J2EE component</description>
|
||||
<display-name>This is the display name of my J2EE component</display-name>
|
||||
<servlet-name>IMEI</servlet-name>
|
||||
<servlet-class>servlets.IMEI</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>IMEI</servlet-name>
|
||||
<url-pattern>/IMEI</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||
@@ -0,0 +1,12 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PDA授权验证接口</title>
|
||||
</head>
|
||||
<body>
|
||||
PDA授权验证接口
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user