代码更新
This commit is contained in:
@@ -15,6 +15,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.modules.logging.annotation.Log;
|
||||
import org.nl.modules.system.service.ParamService;
|
||||
import org.nl.system.service.param.ISysParamService;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -29,7 +30,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
@Slf4j
|
||||
public class AppUpdateController {
|
||||
|
||||
private final ParamService paramService;
|
||||
private final ISysParamService iSysParamService;
|
||||
|
||||
@PostMapping
|
||||
@Log("app更新")
|
||||
@@ -38,8 +39,8 @@ public class AppUpdateController {
|
||||
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();
|
||||
String app_rul = iSysParamService.findByCode("APP_URL").getValue();
|
||||
String app_version = iSysParamService.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);
|
||||
|
||||
Reference in New Issue
Block a user