dev
parent
fad8dbe4a8
commit
5071993be2
|
|
@ -94,7 +94,7 @@ public class Config extends JFinalConfig {
|
||||||
public static DeviceThread deviceThread = new DeviceThread();
|
public static DeviceThread deviceThread = new DeviceThread();
|
||||||
public static SocketIOService socketio = null;
|
public static SocketIOService socketio = null;
|
||||||
private static boolean client_run = true;
|
private static boolean client_run = true;
|
||||||
public static final String CLINET_VERSION = "20201029.2";
|
public static final String CLINET_VERSION = "20201030";
|
||||||
|
|
||||||
public static String getRootPath() {
|
public static String getRootPath() {
|
||||||
return PathKit.getWebRootPath()
|
return PathKit.getWebRootPath()
|
||||||
|
|
@ -252,6 +252,15 @@ public class Config extends JFinalConfig {
|
||||||
{
|
{
|
||||||
String jdbcUrl = dbprop.get("jdbcUrl");
|
String jdbcUrl = dbprop.get("jdbcUrl");
|
||||||
|
|
||||||
|
if(isDev() && !jdbcUrl.contains("_dev")){
|
||||||
|
log.error("dev 的开发环境,连的不是 dev 库");
|
||||||
|
log.error("dev 的开发环境,连的不是 dev 库");
|
||||||
|
log.error("dev 的开发环境,连的不是 dev 库");
|
||||||
|
log.error("dev 的开发环境,连的不是 dev 库");
|
||||||
|
|
||||||
|
System.exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
if (isDev() && jdbcUrl.contains("aliyuncs.com")) {
|
if (isDev() && jdbcUrl.contains("aliyuncs.com")) {
|
||||||
jdbcUrl = jdbcUrl.replace("/ssjy_xsx_dev?", "/ssjy_xsx_dev_" + configprop.get("current.supermarket_id") + "?");
|
jdbcUrl = jdbcUrl.replace("/ssjy_xsx_dev?", "/ssjy_xsx_dev_" + configprop.get("current.supermarket_id") + "?");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue