fix: 分享接口返回小程序路径去除前导斜杠

This commit is contained in:
root
2026-03-10 20:36:22 +08:00
parent 484aa96a6e
commit 0cdfebd1dc
@@ -43,7 +43,7 @@ func (h *SmokeHandler) CreateShare(c *gin.Context) {
c.JSON(http.StatusOK, model.Success(gin.H{
"share_token": share.ShareToken,
"expire_at": share.ExpireAt.Format(time.RFC3339),
"share_path": fmt.Sprintf("/pages/share/index?share_token=%s", share.ShareToken),
"share_path": fmt.Sprintf("pages/share/index?share_token=%s", share.ShareToken),
}))
}