蜂鸟修改预下单

This commit is contained in:
邹宗楠
2022-03-30 13:39:31 +08:00
parent 0de43fb815
commit b07cc39afd
4 changed files with 8 additions and 12 deletions

View File

@@ -419,7 +419,6 @@ func GetUserStoresResultMap(userID string) (resultMap map[int]int, err error) {
func IsRoled(ctx *jxcontext.Context) bool {
if ctx.GetUserName() != "jxadmin" {
if user, err := dao.GetUserByID(dao.GetDB(), "user_id", ctx.GetUserID()); err == nil {
fmt.Println("用户type", user.Type)
if user.Type&model.UserTypeRole != 0 {
return true
}