更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -13,7 +13,6 @@ import (
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
)
|
||||
|
||||
// PlatformHomeController 平台首页统计(需登录)
|
||||
type PlatformHomeController struct {
|
||||
beego.Controller
|
||||
}
|
||||
@@ -70,8 +69,6 @@ func cellToInt64(v interface{}) int64 {
|
||||
}
|
||||
|
||||
func queryExtractedCountByDay(table string, start, endExclusive time.Time) (map[string]int64, error) {
|
||||
// 不按 delete_time 过滤:部分库未删除行存 0000-00-00 或非 NULL,会导致统计全空。
|
||||
// Raw + QueryRows 对别名映射不稳定,改用 Values 解析 d/c。
|
||||
sql := fmt.Sprintf(`
|
||||
SELECT DATE(extracted_time) AS d, COUNT(*) AS c
|
||||
FROM %s
|
||||
@@ -111,8 +108,6 @@ ORDER BY d
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AccountPoolDailyExtract GET /platform/home/accountPoolDailyExtract?days=14
|
||||
// 按天统计各号池「已提取」数量,依据 extracted_time 落在当天的记录。
|
||||
func (c *PlatformHomeController) AccountPoolDailyExtract() {
|
||||
if _, err := requirePlatformAuth(&c.Controller); err != nil {
|
||||
code := identity.Status(err)
|
||||
@@ -200,8 +195,6 @@ func countPoolInventory(mi interface{}, soldOnly bool) (int64, error) {
|
||||
return n, err
|
||||
}
|
||||
|
||||
// AccountPoolInventoryTotals GET /platform/home/accountPoolInventoryTotals
|
||||
// 各号池:账号总数(未删)、已售卖(is_extracted 为 1 或 2)
|
||||
func (c *PlatformHomeController) AccountPoolInventoryTotals() {
|
||||
if _, err := requirePlatformAuth(&c.Controller); err != nil {
|
||||
code := identity.Status(err)
|
||||
@@ -229,7 +222,6 @@ func (c *PlatformHomeController) AccountPoolInventoryTotals() {
|
||||
new(models.PlatformAccountPoolCodex),
|
||||
}
|
||||
|
||||
|
||||
var grandTotal, grandSold int64
|
||||
for i := range modules {
|
||||
tot, err := countPoolInventory(modelsList[i], false)
|
||||
|
||||
Reference in new issue
Block a user