Browse Source

no message

xingzai 8 months ago
parent
commit
50290e665b
1 changed files with 4 additions and 3 deletions
  1. 4 3
      controllers/user.go

+ 4 - 3
controllers/user.go

@@ -1201,13 +1201,14 @@ func (this *UserController) ApplyTryOut() {
 		}
 	} else {
 		//获取销售信息
-		sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 1)
-		if err != nil && err.Error() != utils.ErrNoRow() {
+		//sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 1)
+		ficcCount, err := models.GetCompanyProductCount(user.CompanyId, utils.COMPANY_PRODUCT_FICC_ID)
+		if err != nil {
 			br.Msg = "申请失败"
 			br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
 			return
 		}
-		if sellerItem != nil {
+		if ficcCount > 0 {
 			CompanyIdType = 3
 			applyMethod = "FICC客户"
 		} else {