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
frontend:
cd cls && yarn run build
cd ui && yarn run build
tar:
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
import (
"cls/cls"
Ihttp "cls/pkg/http"
"cls/pkg/logger"
"cls/pkg/sms"
"cls/pkg/util/security"
"cls/pkg/xorm_engine"
"cls/ui"
"context"
"fmt"
_ "github.com/go-sql-driver/mysql"
@ -36,7 +36,7 @@ func NewGinEngine(lc fx.Lifecycle, auth *auth_middleware.AuthMiddleware, appConf
handler := gin.New()
handler.Use(gin.Recovery())
handler.Use(auth.Handle())
handler.Use(middleware.ServeRoot("/", "dist", &cls.RESOURCE))
handler.Use(middleware.ServeRoot("/", "dist", &ui.RESOURCE))
handler.NoRoute(func(context *gin.Context) {
if context.Request.RequestURI != "/" {
context.Redirect(http.StatusTemporaryRedirect, "/")

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

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

Loading…
Cancel
Save