ソースを参照

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
 	}