Browse Source

no message

xingzai 8 months ago
parent
commit
7f28e15859
1 changed files with 7 additions and 8 deletions
  1. 7 8
      services/wx_category_template_msg.go

+ 7 - 8
services/wx_category_template_msg.go

@@ -85,15 +85,14 @@ func SendPermissionApplyTemplateMsgAdminByYxCategory(req models.ApplyTryReq, com
 			err = errors.New("GetCompanyProductCount, Err: " + e.Error())
 			return
 		}
-		if raiCount == 0 {
-			return
-		}
-		sealldetail, e := models.GetRaiSellerByCompanyId(companyId)
-		if e != nil {
-			err = errors.New("GetRaiSellerByCompanyId, Err: " + e.Error())
-			return
+		if raiCount > 0 {
+			sealldetail, e := models.GetRaiSellerByCompanyId(companyId)
+			if e != nil {
+				err = errors.New("GetRaiSellerByCompanyId, Err: " + e.Error())
+				return
+			}
+			mobileOpneid = sealldetail.Mobile
 		}
-		mobileOpneid = sealldetail.Mobile
 	}
 
 	openIdList, e := models.GetMfyxWxOpenIdByMobileList(mobileOpneid)