修改商城权限,让登录用户可以看到数据

This commit is contained in:
邹宗楠
2022-03-28 19:06:01 +08:00
parent 147830ce3b
commit abe967dd8e
6 changed files with 15 additions and 2 deletions

View File

@@ -130,6 +130,9 @@ var (
ErrInvalidParams = errors.New("参数不合法")
)
// 微信小程序商城appid
const WeCartAppID = "wx4b5930c13f8b1170"
func init() {
authers = make(map[string]IAuther)
@@ -297,6 +300,9 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
authInfo.IsExistOpenID = true
}
}
if WeCartAppID == appID {
authInfo.AuthBindInfo.AppServer = WeCartAppID
}
}
}
}