This commit is contained in:
hero920103 committed 2026-10-19 01:13:17 +08:00
1 parent 5718a00e31
commit 1850ac640e
226 files changed
+37772 -12071

No files matched your search

+5 -2
View File
@@ -7,6 +7,7 @@ import (
"time"
"server/models"
"server/pkg/identity"
"github.com/beego/beego/v2/client/orm"
beego "github.com/beego/beego/v2/server/web"
@@ -114,7 +115,8 @@ ORDER BY d
// 按天统计各号池「已提取」数量,依据 extracted_time 落在当天的记录。
func (c *PlatformHomeController) AccountPoolDailyExtract() {
if _, err := requirePlatformAuth(&c.Controller); err != nil {
poolJSONErr(&c.Controller, 401, 401, err.Error())
code := identity.Status(err)
poolJSONErr(&c.Controller, code, code, err.Error())
return
}
n, _ := c.GetInt("days", 14)
@@ -202,7 +204,8 @@ func countPoolInventory(mi interface{}, soldOnly bool) (int64, error) {
// 各号池:账号总数(未删)、已售卖(is_extracted 为 1 或 2)
func (c *PlatformHomeController) AccountPoolInventoryTotals() {
if _, err := requirePlatformAuth(&c.Controller); err != nil {
poolJSONErr(&c.Controller, 401, 401, err.Error())
code := identity.Status(err)
poolJSONErr(&c.Controller, code, code, err.Error())
return
}