abiao лет назад: 4
Родитель
Сommit
1cf525b355

+ 4 - 3
go/gopath/src/fohow.com/apps/controllers/user_controller/agent_apply_controller.go

@@ -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()