|
|
@@ -199,9 +199,10 @@ func (self *UserController) GetAgentDetailByWxUid() {
|
|
|
if item.WxUId != id {
|
|
|
//self.ReturnError(403, apps.NoExist, "", nil)
|
|
|
}*/
|
|
|
- if curWxUser != nil {
|
|
|
- item.SaleGroup = curWxUser.SaleGroup
|
|
|
- item.SaleGroupSum = curWxUser.SaleGroupSum
|
|
|
+ itemUser := user_model.GetWxUserById(item.WxUId, false)
|
|
|
+ if itemUser != nil {
|
|
|
+ item.SaleGroup = itemUser.SaleGroup
|
|
|
+ item.SaleGroupSum = itemUser.SaleGroupSum
|
|
|
}
|
|
|
self.Data["json"] = item
|
|
|
self.ServeJSON()
|