|
@@ -51,6 +51,21 @@ func (srv *CommonService) GetDictionaryByCode(getDictionaryQuery *query.GetDicti |
|
@@ -51,6 +51,21 @@ func (srv *CommonService) GetDictionaryByCode(getDictionaryQuery *query.GetDicti |
51
|
//LatestVersionInfo 版本升级
|
51
|
//LatestVersionInfo 版本升级
|
52
|
func (srv *CommonService) LatestVersionInfo(q *query.GetLatestVersionQuery) (interface{}, error) {
|
52
|
func (srv *CommonService) LatestVersionInfo(q *query.GetLatestVersionQuery) (interface{}, error) {
|
53
|
vs := version_server.NewHttpLibVersionServer()
|
53
|
vs := version_server.NewHttpLibVersionServer()
|
|
|
54
|
+ // TODO:版本管理系统按应用名称查询相应版本信息,目前维护人没在,此处先写死手动维护
|
|
|
55
|
+ if len(q.AppName) != 0 && q.AppName == "com.mmm.manufacture-weigh.pad" {
|
|
|
56
|
+ return map[string]interface{}{
|
|
|
57
|
+ "version": map[string]interface{}{
|
|
|
58
|
+ "versionName": "版本 v1.0.1",
|
|
|
59
|
+ "content": "版本升级",
|
|
|
60
|
+ "title": "版本升级",
|
|
|
61
|
+ "versionNo": "100001",
|
|
|
62
|
+ "downloadFile": "upgrade",
|
|
|
63
|
+ "downloadPage": "http://fir.fjmaimaimai.com/ben1",
|
|
|
64
|
+ "updateType": 0,
|
|
|
65
|
+ "channel": 1,
|
|
|
66
|
+ },
|
|
|
67
|
+ }, nil
|
|
|
68
|
+ }
|
54
|
data, err := vs.GetLatestVersion(q.Request, version_server.ReqLatestVersion{
|
69
|
data, err := vs.GetLatestVersion(q.Request, version_server.ReqLatestVersion{
|
55
|
VersionNo: q.VersionNo,
|
70
|
VersionNo: q.VersionNo,
|
56
|
Channel: q.Channel,
|
71
|
Channel: q.Channel,
|