|
|
@ -15,6 +15,7 @@ import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
import com.ruoyi.common.enums.BusinessType; |
|
|
|
import com.ruoyi.common.utils.DateUtils; |
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil; |
|
|
|
import com.ruoyi.system.service.ISysConfigService; |
|
|
|
import com.zc.business.constant.DeviceTypeConstants; |
|
|
|
import com.zc.business.domain.DcDevice; |
|
|
|
import com.zc.business.interfaces.OperationLog; |
|
|
@ -62,6 +63,9 @@ public class DcDeviceController extends BaseController { |
|
|
|
@Resource |
|
|
|
private BroadcastController broadcastController; |
|
|
|
|
|
|
|
@Resource |
|
|
|
private ISysConfigService configService; |
|
|
|
|
|
|
|
//*********************************设备增删改查******************************************
|
|
|
|
|
|
|
|
/** |
|
|
@ -805,5 +809,13 @@ public class DcDeviceController extends BaseController { |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
/** |
|
|
|
* 设备箱-设备操作口令校验 |
|
|
|
*/ |
|
|
|
@GetMapping("/kouling/{secretKey}") |
|
|
|
public AjaxResult verifySecretKey(@PathVariable String secretKey) { |
|
|
|
String key = configService.selectConfigByKey("sbx-fun-kl");//密钥
|
|
|
|
return AjaxResult.success(key.equals(secretKey)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|