广告平台(站长下代理使用)
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
485 B

  1. package svc
  2. import (
  3. "applet/app/db/implement"
  4. "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/sms"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func SmsCheck(c *gin.Context, phone, captcha string) (bool, error) {
  8. send := map[string]interface{}{
  9. "phone": phone,
  10. "zone": "86",
  11. "code": captcha,
  12. }
  13. NewSysCfgDb := implement.NewSysCfgDb(MasterDb(c), c.GetString("mid"))
  14. key := NewSysCfgDb.SysCfgGetWithDb("mob_app_key")
  15. send["appkey"] = key
  16. return sms.SMSMobCheck(send)
  17. }