Browse Source

增加设备箱-设备操作口令校验接口

develop
Mr.Wang 5 months ago
parent
commit
31151959ec
  1. 12
      zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java

12
zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java

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

Loading…
Cancel
Save