Browse Source

发送白名单手机号兼容海通国际的特殊手机号

xingzai 2 years ago
parent
commit
be38636acb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      services/user.go

+ 2 - 0
services/user.go

@@ -432,6 +432,8 @@ func SendEmailUserWhiteListChange(cont context.Context) (err error) {
 		mobileStr = "1"
 	}
 	mobileStr = strings.Replace(mobileStr, " ", "", -1)
+	mobileStr = strings.Replace(mobileStr, ",", "','", -1)
+	mobileStr = "'" + mobileStr + "'"
 	//手机号新增
 	fieldStr = ` u.mobile,u.country_code,u.real_name,c.company_name,u.company_id,cp.seller_name,cp.status,`
 	condition = `  AND cp.status IN ( '正式', '试用' ) AND u.mobile IN (` + mobileStr + `) `