generated from root/miduo_server
GM文件目录
parent
6e241a563b
commit
268f00ed5f
|
|
@ -163,7 +163,13 @@ public class GmController {
|
|||
|
||||
|
||||
public void fixOrder() {
|
||||
String filePath = "conf/delivery-server.log";
|
||||
String osName = System.getProperty("os.name");
|
||||
String filePath = "";
|
||||
if (osName.matches("^(?i)Windows.*$")) {// Window 系统
|
||||
filePath = "conf/delivery-server.log";
|
||||
} else {// Linux 系统
|
||||
filePath = "../config/delivery-server.log";
|
||||
}
|
||||
Gson gson = new Gson();
|
||||
String s1 = "{\"orderId\":\"21032914511376426677449527296\",\"delivery_time\":\"2021-03-29 16:17:46\",\"serverId\":91001,\"userId\":\"10048062\"}";
|
||||
String s2 = "{\"orderId\":\"21032914511376426677449527296\",\"delivery_time\":\"2021-04-05 00:26:36\",\"serverId\":10154,\"userId\":\"10048062\",\"goodsId\":\"1\",\"amount\":\"600\"}";
|
||||
|
|
|
|||
Loading…
Reference in New Issue