Merge pull request #282 from samwafgo/feat_261_2

feat:beta update
This commit is contained in:
samwafgo
2025-05-01 22:03:50 +08:00
committed by GitHub
+2 -2
View File
@@ -102,7 +102,7 @@ func (w *WafSysInfoApi) SysVersionApi(c *gin.Context) {
func (w *WafSysInfoApi) CheckVersionApi(c *gin.Context) {
if global.GWAF_RUNTIME_IS_UPDATETING == true {
response.OkWithMessage("正在升级中...请在消息等待结果", c)
response.FailWithMessage("正在升级中...请在消息等待结果", c)
return
}
var remoteURL string
@@ -158,7 +158,7 @@ func (w *WafSysInfoApi) UpdateApi(c *gin.Context) {
// 获取请求中的 channel 参数
channel := c.Query("channel")
if global.GWAF_RUNTIME_IS_UPDATETING == true {
response.OkWithMessage("正在升级中...请在消息等待结果", c)
response.FailWithMessage("正在升级中...请在消息等待结果", c)
return
}
var remoteURL string