Update subController.go

This commit is contained in:
Hassan Dashtizadeh 2025-03-06 22:40:59 +03:00 committed by GitHub
parent 5cc04d0343
commit d5199b614c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,13 +102,16 @@ func (a *SUBController) subs(c *gin.Context) {
c.String(200, base64.StdEncoding.EncodeToString([]byte(result)))
} else {
c.HTML(200, "sub.html", gin.H{
"result": resultSlice,
"total": totalValue,
"expire": expireValue,
"upload": upValue,
"download": downValue,
"sId": subId,
"subUrl": currentURL,
"result": resultSlice,
"total": totalValue,
"expire": expireValue,
"upload": upValue,
"download": downValue,
"totalByte": headerMap["total"],
"uploadByte": headerMap["upload"],
"downloadByte": headerMap["download"],
"sId": subId,
"subUrl": currentURL,
})
}
} else {