Browse Source

fix:修改路由

zqbao 19 hours ago
parent
commit
303de28f6c
2 changed files with 4 additions and 4 deletions
  1. 3 3
      controllers/report.go
  2. 1 1
      routers/commentsRouter.go

+ 3 - 3
controllers/report.go

@@ -2027,9 +2027,9 @@ func (this *ReportCommonController) ShareGenerate() {
 // ShareTransform
 // @Title 获取原始链接
 // @Description 获取原始链接
-// @Param	UrlToken   query   string  true    "复制链接的token"
+// @Param	Token   query   string  true    "复制链接的token"
 // @Success 200 Ret=200 操作成功
-// @router /share/transform [get]
+// @router /share/link [get]
 func (this *ReportCommonController) ShareTransform() {
 	br := new(models.BaseResponse).Init()
 	defer func() {
@@ -2037,7 +2037,7 @@ func (this *ReportCommonController) ShareTransform() {
 		this.ServeJSON()
 	}()
 
-	token := this.GetString("UrlToken")
+	token := this.GetString("Token")
 
 	link, msg, err := services.TransfromToOriginUrl(token)
 	if err != nil {

+ 1 - 1
routers/commentsRouter.go

@@ -5302,7 +5302,7 @@ func init() {
     beego.GlobalControllerRouter["eta/eta_mobile/controllers:ReportCommonController"] = append(beego.GlobalControllerRouter["eta/eta_mobile/controllers:ReportCommonController"],
         beego.ControllerComments{
             Method: "ShareTransform",
-            Router: `/share/transform`,
+            Router: `/share/link`,
             AllowHTTPMethods: []string{"get"},
             MethodParams: param.Make(),
             Filters: nil,