|
|
@@ -84,9 +84,9 @@ public class SystemController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查询密码记事
|
|
|
+ * 查询版本更新信息
|
|
|
*/
|
|
|
- @RequestMapping(value = "/api/getUpgradeInfo", method = RequestMethod.POST, produces = "application/json; charset=utf-8")
|
|
|
+ @RequestMapping(value = "/api/getUpgradeInfo", method = RequestMethod.GET, produces = "application/json; charset=utf-8")
|
|
|
@ResponseBody
|
|
|
public String getUpgradeInfo() {
|
|
|
ResponseResult<UpgradeBean> responseResult = new ResponseResult<UpgradeBean>();
|
|
|
@@ -96,6 +96,11 @@ public class SystemController {
|
|
|
try {
|
|
|
upgradeInfo = upgradeRepository.findLatestUpgradeInfo();
|
|
|
// http://jianjie.life/upgrade/shibei.apk
|
|
|
+ // nginx对应/file/upgrade/shibei.apk
|
|
|
+ /*#静态资源,和静态网站下建目录放文件是一样效果
|
|
|
+ location /assets/ {
|
|
|
+ alias /file/upgrade/;
|
|
|
+ }*/
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return JSON.toJSONString(responseResult);
|