소스 검색

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
 	}