|
|
@@ -20,6 +20,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.servlet.view.RedirectView;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
@@ -64,6 +65,16 @@ public class DeviceController {
|
|
|
return AjaxResult.success(deviceData);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @GetMapping("/downUrl")
|
|
|
+ @ApiOperation("检测版本")
|
|
|
+ public RedirectView downUrl(){
|
|
|
+ Map<String, Object> deviceData = tDeviceRecordMapper.getDeviceData("select * from dowload_url limit 1");
|
|
|
+ Object url = deviceData.get("url");
|
|
|
+ String urlString = url.toString();
|
|
|
+ return new RedirectView(urlString);
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/bindDevice")
|
|
|
@ApiOperation("绑定设备")
|
|
|
public AjaxResult bindDevice(@RequestParam("qrcode") String qrcode){
|