From a1ddba2c7890d26197571c0129a48fde65fd5e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 22 Jan 2021 10:28:35 +0800 Subject: [PATCH] aa --- business/jxstore/cms/store.go | 3 --- business/model/user.go | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 3c5d37c5b..1255c18ba 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -518,10 +518,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa } //权限 if ctx.GetUserName() != "jxadmin" { - fmt.Println("111111111111111111111111111111111111111111") if user, err := dao.GetUserByID(db, "user_id", ctx.GetUserID()); err == nil { if user.Type&model.UserTypeRole != 0 { - fmt.Println("22222222222222222222222222222222222222222") if storeIDsMap, err := GetUserStoresResultMap(user.UserID); err == nil { var storeList2 []*StoreExt for _, v := range retVal.Stores { @@ -529,7 +527,6 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa storeList2 = append(storeList2, v) } } - fmt.Println("3333333333333333333333333333333333333333333", storeIDsMap) retVal.Stores = nil retVal.Stores = storeList2 } diff --git a/business/model/user.go b/business/model/user.go index ed13543d7..9c708b927 100644 --- a/business/model/user.go +++ b/business/model/user.go @@ -230,8 +230,8 @@ type Role struct { Name string `json:"name"` //角色名 BrandID int `orm:"column(brand_id)" json:"brandID"` - CityCodes string `json:"cityCodes"` - StoreIDs string `orm:"column(store_ids)" json:"storeIDs"` + CityCodes string `orm:"type(text)" json:"cityCodes"` + StoreIDs string `orm:"column(store_ids);type(text)" json:"storeIDs"` } func (*Role) TableUnique() [][]string {