Browse Source

Revert "233-登录验证码获取限制-验证码限制"

This reverts commit 875fd48eba819c90feeb6d8486da3b3f6ce717ca.
gmy 1 month ago
parent
commit
8d1d2b51cb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      services/sms.go

+ 2 - 2
services/sms.go

@@ -15,7 +15,7 @@ const SmsExpireMinute = 15
 
 
 // SendSmsCode 发送国内短信
 // SendSmsCode 发送国内短信
 func SendSmsCode(mobile, vCode string) bool {
 func SendSmsCode(mobile, vCode string) bool {
-	flag := true
+	flag := false
 	//tplId := "65692"
 	//tplId := "65692"
 	tplId := "254663"
 	tplId := "254663"
 	result, err := sendSms(mobile, tplId, vCode)
 	result, err := sendSms(mobile, tplId, vCode)
@@ -75,7 +75,7 @@ func sendSms(mobile, tplId, code string) (rs []byte, err error) {
 
 
 // SendSmsCodeGj 发送国际短信
 // SendSmsCodeGj 发送国际短信
 func SendSmsCodeGj(mobile, vCode, areaNum string) bool {
 func SendSmsCodeGj(mobile, vCode, areaNum string) bool {
-	flag := true
+	flag := false
 	result, err := sendSmsGj(mobile, vCode, areaNum)
 	result, err := sendSmsGj(mobile, vCode, areaNum)
 	if err != nil {
 	if err != nil {
 		fmt.Println("发送短信失败")
 		fmt.Println("发送短信失败")