From f3f7088545c2be0b6da1b4e5e1d8461fa57a63fc Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期二, 08 九月 2020 15:03:56 +0800 Subject: [PATCH] fix url and fix testNightPush --- controllers/sys.go | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/controllers/sys.go b/controllers/sys.go index e7154d3..1b2051d 100644 --- a/controllers/sys.go +++ b/controllers/sys.go @@ -27,8 +27,10 @@ if platform == "" { platform = "android" } - pType := models.PlatType_Android - if platform != "android" { + pType := -1 //鏈煡鐨勫钩鍙� + if platform == "android" { + pType = models.PlatType_Android + } else if platform == "ios" { pType = models.PlatType_Ios } result := vo.Upgrade{} -- Gitblit v1.8.0