feat(1.0.1):前端重命名

developing
张帅 3 weeks ago
parent 73190da18a
commit 2ef48eaca9

@ -4,7 +4,7 @@ image: frontend docker-build save-image
TAG=v1.0 TAG=v1.0
frontend: frontend:
cd cls && yarn run build cd ui && yarn run build
tar: tar:
tar -czf cls-h5.$(TAG).tar.gz cls config tar -czf cls-h5.$(TAG).tar.gz cls config

BIN
cls

Binary file not shown.

Binary file not shown.

@ -1,12 +1,12 @@
package config package config
import ( import (
"cls/cls"
Ihttp "cls/pkg/http" Ihttp "cls/pkg/http"
"cls/pkg/logger" "cls/pkg/logger"
"cls/pkg/sms" "cls/pkg/sms"
"cls/pkg/util/security" "cls/pkg/util/security"
"cls/pkg/xorm_engine" "cls/pkg/xorm_engine"
"cls/ui"
"context" "context"
"fmt" "fmt"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
@ -36,7 +36,7 @@ func NewGinEngine(lc fx.Lifecycle, auth *auth_middleware.AuthMiddleware, appConf
handler := gin.New() handler := gin.New()
handler.Use(gin.Recovery()) handler.Use(gin.Recovery())
handler.Use(auth.Handle()) handler.Use(auth.Handle())
handler.Use(middleware.ServeRoot("/", "dist", &cls.RESOURCE)) handler.Use(middleware.ServeRoot("/", "dist", &ui.RESOURCE))
handler.NoRoute(func(context *gin.Context) { handler.NoRoute(func(context *gin.Context) {
if context.Request.RequestURI != "/" { if context.Request.RequestURI != "/" {
context.Redirect(http.StatusTemporaryRedirect, "/") context.Redirect(http.StatusTemporaryRedirect, "/")

@ -40,8 +40,6 @@ type SmsCaptchaResForTencentSub struct {
} }
func (c *Client) SubmitPhoneCodeRequest(phoneMsg *MsgReq) (*SmsCaptchaResForTencentSub, error) { func (c *Client) SubmitPhoneCodeRequest(phoneMsg *MsgReq) (*SmsCaptchaResForTencentSub, error) {
fmt.Sprintln("=============")
fmt.Println("start send captcha")
req := &SmsCaptchaReqForTencent{ req := &SmsCaptchaReqForTencent{
Action: "SendSms", Action: "SendSms",
Version: "2021-01-11", Version: "2021-01-11",
@ -52,19 +50,15 @@ func (c *Client) SubmitPhoneCodeRequest(phoneMsg *MsgReq) (*SmsCaptchaResForTenc
SignName: "627395", SignName: "627395",
TemplateParamSet: []string{phoneMsg.Code, "3"}, TemplateParamSet: []string{phoneMsg.Code, "3"},
} }
fmt.Println(req)
body, err := json2.Marshal(req) body, err := json2.Marshal(req)
if err != nil { if err != nil {
fmt.Println(err.Error()) fmt.Println(err.Error())
return nil, err return nil, err
} }
fmt.Println(string(body))
resp := &SmsCaptchaResForTencent{} resp := &SmsCaptchaResForTencent{}
fmt.Println("gogogo")
err = c.getParsedResponse("POST", smsSendUrl, jsonHeader, bytes.NewReader(body), resp) err = c.getParsedResponse("POST", smsSendUrl, jsonHeader, bytes.NewReader(body), resp)
if err != nil { if err != nil {
fmt.Println(err.Error())
return nil, err return nil, err
} }
if len(resp.SendStatusSet) == 0 { if len(resp.SendStatusSet) == 0 {

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save