|
@@ -146,7 +146,7 @@ func (this *ServiceStruct) CstAtt() {
|
|
|
}
|
|
|
|
|
|
func (this *ServiceStruct) Read() {
|
|
|
- userInfo := util.GetUserBaseInfo(this.Session())
|
|
|
+ sess := util.GetUserBaseInfo(this.Session())
|
|
|
defer qu.Catch()
|
|
|
r := func() Result {
|
|
|
if this.Method() != "POST" {
|
|
@@ -161,7 +161,8 @@ func (this *ServiceStruct) Read() {
|
|
|
if cotion.Name == "" {
|
|
|
return Result{Data: nil, Error_msg: Error_msg_1003}
|
|
|
}
|
|
|
- cotion.UserId = userInfo.UserId
|
|
|
+ userInfo := jy.GetBigVipUserBaseMsg(this.Session(), *config.Middleground)
|
|
|
+ cotion.UserId = qu.If(userInfo.Pid != "", userInfo.Pid, sess.UserId).(string)
|
|
|
return Result{Data: cotion.Read()}
|
|
|
}()
|
|
|
this.ServeJson(r)
|