手持APP更新
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
<java.version>1.8</java.version>
|
||||
<log4jdbc.version>1.16</log4jdbc.version>
|
||||
<swagger.version>2.9.2</swagger.version>
|
||||
<fastjson.version>1.2.70</fastjson.version>
|
||||
<druid.version>1.1.22</druid.version>
|
||||
<commons-pool2.version>2.5.0</commons-pool2.version>
|
||||
<mapstruct.version>1.3.1.Final</mapstruct.version>
|
||||
@@ -241,12 +240,6 @@
|
||||
<version>2.12.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- fastjson -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>${fastjson.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--mapStruct依赖-->
|
||||
<dependency>
|
||||
|
||||
@@ -20,7 +20,6 @@ import org.nl.system.service.secutiry.dto.AuthUserDto;
|
||||
import org.nl.system.service.user.ISysUserService;
|
||||
import org.nl.system.service.user.dao.SysUser;
|
||||
import org.nl.system.service.user.dto.CurrentUser;
|
||||
import org.nl.system.service.user.dto.UserDto;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
package org.nl.wms.pda;
|
||||
|
||||
/**
|
||||
* @author ldjun
|
||||
* @version 1.0
|
||||
* @date 2023年02月14日 15:20
|
||||
* @desc desc
|
||||
*/
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.modules.logging.annotation.Log;
|
||||
import org.nl.modules.system.service.ParamService;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@Api(tags = "任务管理")
|
||||
@RequestMapping("/api/pda/update")
|
||||
@Slf4j
|
||||
public class AppUpdateController {
|
||||
|
||||
private final ParamService paramService;
|
||||
|
||||
@PostMapping
|
||||
@Log("app更新")
|
||||
@ApiOperation("app更新")
|
||||
@SaIgnore
|
||||
public ResponseEntity<Object> appUpdate() {
|
||||
JSONObject obj=new JSONObject();
|
||||
// obj.put("versionName","1.0.1");
|
||||
String app_rul = paramService.findByCode("APP_URL").getValue();
|
||||
String app_version = paramService.findByCode("APP_VERSION").getValue();
|
||||
// obj.put("url","http://172.17.2.163:8080/apk/app.apk");
|
||||
obj.put("url",app_rul);
|
||||
obj.put("versionName",app_version);
|
||||
return new ResponseEntity<>(obj, HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user