重命名资源套餐相关结构体和数据库表,新增长效套餐类型
This commit is contained in:
@@ -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()).
|
||||
|
||||
Reference in New Issue
Block a user