package svc import ( "applet/app/db/implement" "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/sms" "github.com/gin-gonic/gin" ) func SmsCheck(c *gin.Context, phone, captcha string) (bool, error) { send := map[string]interface{}{ "phone": phone, "zone": "86", "code": captcha, } NewSysCfgDb := implement.NewSysCfgDb(MasterDb(c), c.GetString("mid")) key := NewSysCfgDb.SysCfgGetWithDb("mob_app_key") send["appkey"] = key return sms.SMSMobCheck(send) }