|
@@ -38,6 +38,9 @@ public class OpenAppVersionInfoController {
|
|
|
@GetMapping(value = "/queryLatestByPlatform")
|
|
|
public R<AppVersionInfo> queryLatestByPlatform(String platform, String status) {
|
|
|
String appStatus = Optional.ofNullable(status).orElse("newest");
|
|
|
+ if ("history".equals(appStatus)) {
|
|
|
+ appStatus = "newest,history";
|
|
|
+ }
|
|
|
List<AppVersionInfo> list = appVersionInfoService.queryLatestByPlatform(platform, appStatus);
|
|
|
if (list.size() > 0) {
|
|
|
return R.from(list.get(0));
|