|
|
@@ -41,6 +41,7 @@ public class KwBoxV1Controller extends BaseController { |
|
|
KwBoxCmdHistory kwBoxCmdHistory = new KwBoxCmdHistory(); |
|
|
KwBoxCmdHistory kwBoxCmdHistory = new KwBoxCmdHistory(); |
|
|
kwBoxCmdHistory.setCmd(cmd); |
|
|
kwBoxCmdHistory.setCmd(cmd); |
|
|
kwBoxCmdHistory.setCreateTime(new Date()); |
|
|
kwBoxCmdHistory.setCreateTime(new Date()); |
|
|
|
|
|
kwBoxCmdHistory.setUpdateTime(new Date()); |
|
|
kwBoxCmdHistory.setDeviceTime(deviceTime); |
|
|
kwBoxCmdHistory.setDeviceTime(deviceTime); |
|
|
kwBoxCmdHistory.setIccid(ccid); |
|
|
kwBoxCmdHistory.setIccid(ccid); |
|
|
kwBoxCmdHistory.setImei(imei); |
|
|
kwBoxCmdHistory.setImei(imei); |
|
|
@@ -176,7 +177,7 @@ public class KwBoxV1Controller extends BaseController { |
|
|
|
|
|
|
|
|
@ApiOperation("开物盒子V1") |
|
|
@ApiOperation("开物盒子V1") |
|
|
@PostMapping("command") |
|
|
@PostMapping("command") |
|
|
public Result v1(@RequestBody Map<String,String> paramMap) { |
|
|
|
|
|
|
|
|
public Result command(@RequestBody Map<String,String> paramMap) { |
|
|
|
|
|
|
|
|
String cmd = paramMap.get("CMD"); |
|
|
String cmd = paramMap.get("CMD"); |
|
|
if (StringUtil.isNullOrEmpty(cmd)) |
|
|
if (StringUtil.isNullOrEmpty(cmd)) |
|
|
|