瀏覽代碼

agent apply id

abiao 4 年之前
父節點
當前提交
1cf525b355
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      go/gopath/src/fohow.com/apps/controllers/user_controller/agent_apply_controller.go

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