wangshan hai 5 meses
pai
achega
e017b6430b

+ 5 - 0
src/jfw/modules/publicapply/src/captcha/controller/controller.go

@@ -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

+ 1 - 0
src/jfw/modules/publicapply/src/config.yaml

@@ -6,3 +6,4 @@ powerCheckCenterKey: "powercheck.rpc" #权益校验中台
 entManageApplication: "entmanageapplication.rpc" #企业管理中台
 jyPointKey: "integral.rpc" #积分中台
 resourceCenterKey: "resource.rpc" #资源中台
+smswxswitch: true