|
|
@@ -193,17 +193,7 @@ func (self *UserController) GetAgentDetailByWxUid() {
|
|
|
}
|
|
|
//wxUId := int64(1781)
|
|
|
item := user_model.GetAgentApplyByWxUId(id)
|
|
|
- /*if item == nil {
|
|
|
- //self.ReturnError(403, apps.NoExist, "", nil)
|
|
|
- }
|
|
|
- if item.WxUId != id {
|
|
|
- //self.ReturnError(403, apps.NoExist, "", nil)
|
|
|
- }*/
|
|
|
- itemUser := user_model.GetWxUserById(item.WxUId, false)
|
|
|
- if itemUser != nil && item != nil {
|
|
|
- item.SaleGroup = itemUser.SaleGroup
|
|
|
- item.SaleGroupSum = itemUser.SaleGroupSum
|
|
|
- }
|
|
|
+
|
|
|
self.Data["json"] = item
|
|
|
self.ServeJSON()
|
|
|
}
|