瀏覽代碼

agent apply id

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

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

@@ -200,7 +200,7 @@ func (self *UserController) GetAgentDetailByWxUid() {
 		//self.ReturnError(403, apps.NoExist, "", nil)
 	}*/
 	itemUser := user_model.GetWxUserById(item.WxUId, false)
-	if itemUser != nil {
+	if itemUser != nil && item != nil {
 		item.SaleGroup = itemUser.SaleGroup
 		item.SaleGroupSum = itemUser.SaleGroupSum
 	}