From 1f28fd3371663db53987202fc31df31911884eba Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期五, 24 七月 2020 17:16:56 +0800 Subject: [PATCH] upgrade add msg --- conf/app.conf | 4 ++-- controllers/sys.go | 4 ++++ models/sys.go | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/conf/app.conf b/conf/app.conf index 8ccddc0..31d1e2b 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -7,8 +7,8 @@ sqlconn = gendoc = true downdoc = true -latestVersion = 1.0.0 -latestUrl = +latestVersion = 1.0.1 +latestUrl = www.baidu.com juheweihaokey = 8c0efc4439080ef6c6aa2c29688c9550 pushAppId = WfOtCAmf0w6jS3B59V0mb5 pushAppKey = hVBAHDe85F9ZviAUYknxb4 diff --git a/controllers/sys.go b/controllers/sys.go index 133de75..1f6d908 100644 --- a/controllers/sys.go +++ b/controllers/sys.go @@ -28,6 +28,10 @@ if shouldVersionBeUpgrade(curV, latestV) { result.IsUpgrade = true result.Url = beego.AppConfig.String("latestUrl") + result.Msg = []string { + "浼樺寲鍋滆溅鍦鸿溅浣嶅湴鍥�", + "瑙e喅宸茬煡闂", + } } else { result.IsUpgrade = false } diff --git a/models/sys.go b/models/sys.go index 10c1608..3440c4c 100644 --- a/models/sys.go +++ b/models/sys.go @@ -4,4 +4,5 @@ LatestVersion string `json:"latestVersion"` Url string `json:"url"` IsUpgrade bool `json:"isUpgrade"` + Msg []string `json:"msg"` } -- Gitblit v1.8.0