🆕 新增显示vnc页面

This commit is contained in:
李寻欢
2024-01-09 10:48:21 +08:00
parent 6d127d1492
commit f0bb46b9ab
6 changed files with 20 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package app
import (
"fmt"
"github.com/gin-gonic/gin"
"go-wechat/config"
"go-wechat/service"
"net/http"
)
@@ -21,6 +22,7 @@ func Index(ctx *gin.Context) {
}
result["friends"] = friends
result["groups"] = groups
result["vnc"] = config.Conf.Wechat.VncUrl
// 渲染页面
ctx.HTML(http.StatusOK, "index.html", result)
}