重命名资源套餐相关结构体和数据库表,新增长效套餐类型

This commit is contained in:
2025-05-17 15:54:42 +08:00
parent 9043dd779b
commit d9613a19fb
22 changed files with 859 additions and 1196 deletions

View File

@@ -36,9 +36,9 @@ func OnlineEdge(c *fiber.Ctx) (err error) {
// 挑选合适的转发服务
var fwd *m.Proxy
fwd, err = q.Proxy.Debug().
fwd, err = q.Proxy.
LeftJoin(q.Edge, q.Edge.ProxyID.EqCol(q.Proxy.ID), q.Edge.Status.Eq(1)).
Select(q.Proxy.ALL, q.Edge.ALL.Count().As("count")).
LeftJoin(q.Edge, q.Edge.ProxyID.EqCol(q.Proxy.ID)).
Where(q.Proxy.Type.Eq(int32(proxy2.TypeSelfHosted))).
Group(q.Proxy.ID).
Order(field.NewField("", "count").Desc()).