广告平台(媒体使用)

пре 4 месеци
12345678910111213141516171819
  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. }