wangshan %!s(int64=2) %!d(string=hai) anos
pai
achega
165efd02d5
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 2 0
      entity/source.go
  2. 1 1
      entity/user.go

+ 2 - 0
entity/source.go

@@ -4,6 +4,7 @@ import (
 	powerCheck "bp.jydev.jianyu360.cn/BaseService/powerCheckCenter/rpc/pb"
 	resource "bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/pb"
 	"context"
+	"github.com/zeromicro/go-zero/core/logx"
 )
 
 type UserInfoRpc struct {
@@ -35,6 +36,7 @@ func (ui *UserInfoRpc) GetUserResources() []string {
 
 // GetUserPowers  获取用户权益信息
 func (ui *UserInfoRpc) GetUserPowers() *powerCheck.CheckResp {
+	logx.Info(" ------ ui.MgoUserId:", ui.MgoUserId)
 	req := &powerCheck.CheckReq{
 		Appid:        ui.AppId,
 		Userid:       ui.MgoUserId,

+ 1 - 1
entity/user.go

@@ -79,7 +79,7 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 	//权益中台获取权益
 	userPowers := userInfoRpc.GetUserPowers()
 	if userPowers != nil {
-		logx.Info("------------userPowers:", userPowers)
+		logx.Info(userInfoRpc.MgoUserId, "------------userPowers:", userPowers)
 		//注册时间
 		registerTime = userPowers.Free.Registedate
 		//大会员