|
@@ -9,6 +9,8 @@ import (
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
|
"app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
|
|
|
"fmt"
|
|
|
+ "github.com/gogf/gf/v2/frame/g"
|
|
|
+ "github.com/gogf/gf/v2/os/gctx"
|
|
|
"jy/src/jfw/modules/publicapply/src/config"
|
|
|
"jy/src/jfw/modules/publicapply/src/detail/consts"
|
|
|
"jy/src/jfw/modules/publicapply/src/util"
|
|
@@ -161,6 +163,9 @@ func (c *CaptchaStruct) Check() {
|
|
|
}
|
|
|
|
|
|
func SendCodeByWUrl(sess *httpsession.Session, captKey, phone string, mold int) {
|
|
|
+ if b := g.Cfg().MustGet(gctx.New(), "smswxswitch").Bool(); !b {
|
|
|
+ return
|
|
|
+ }
|
|
|
key := fmt.Sprintf(captcha.SendCodeKey, captKey, phone)
|
|
|
if mold == 1 {
|
|
|
key = captKey
|