From 598f31b341a9d72d5d7e35099f96b70619d3914c Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 28 Nov 2024 17:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/cloud_bundle/svc_list.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/svc/cloud_bundle/svc_list.go b/app/svc/cloud_bundle/svc_list.go index 1302c4f..f1b3026 100644 --- a/app/svc/cloud_bundle/svc_list.go +++ b/app/svc/cloud_bundle/svc_list.go @@ -9,7 +9,6 @@ import ( "applet/app/utils" "code.fnuoos.com/EggPlanet/egg_models.git/src/implement" "code.fnuoos.com/EggPlanet/egg_models.git/src/model" - "encoding/json" "fmt" "github.com/gin-gonic/gin" "github.com/syyongx/php2go" @@ -63,8 +62,7 @@ func List(c *gin.Context) { resp.LastAndroid = lastAndroid.Version resp.LastBit = lastAndroid.Bit resp.LastIsCombine = lastAndroid.IsCombine - platform := make([]string, 0) - json.Unmarshal([]byte(lastAndroid.NewPlatform), &platform) + platform := strings.Split(lastAndroid.NewPlatform, ",") resp.LastPlatform = platform } lastIos, _ := NewCloudBundleDb.GetCloudBundleLast("2")