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")