Jelajahi Sumber

Merge branch 'feature_yf' of HolaBIP/youngee_b_api into develop

houyunfeng 2 tahun lalu
induk
melakukan
4891e94a29
1 mengubah file dengan 1 tambahan dan 11 penghapusan
  1. 1 11
      service/send_code.go

+ 1 - 11
service/send_code.go

@@ -67,17 +67,7 @@ func (s *sendCode) SendCode(ctx context.Context, phone string, vcode string) err
 		Key:    "9a9a78319abd43348b43ec59d23b44bb",
 		Secret: "ed588c47c681417fabe13c612dcfb046",
 	}
-	// sdRequest := http_model.SendCodeData{
-	// 	PhoneNumber: "17604018234",
-	// 	TemplateId:  "TPL_0000",
-	// 	Content:     "code:1234,expire_at:5",
-	// }
-	// jsonBody, err := json.Marshal(sdRequest)
-	// if err != nil {
-	// 	return err
-	// }
-	// content := fmt.Sprintf("【创信】你的验证码是" + vcode + ",3分钟内有效!")
-	templateId := "M4089F58FF"
+	templateId := "JM1000345"
 	url := fmt.Sprintf("https://smssend.apistore.huaweicloud.com/sms/send?receive=" + phone + "&templateId=" + templateId + "&values=" + vcode)
 	fmt.Printf("url: %+v\n", url)