feat: 存储空间管理、虚拟支付接入与容量守卫
- 新增存储空间管理:会员套餐配置、用户容量/到期管理、后台支付记录查询 - 接入个人主体小程序虚拟支付:下单/发货推送/兜底查单(query_order) - 修复 adminStorageUsers 等接口鉴权、out_trade_no 长度、前端 requestVirtualPayment 参数 - 前端上传前容量预检,超容引导升级无限空间 - 我的页会员卡片展示「无限空间」与已用容量/到期时间 - 后台「存储空间管理」新增支付记录标签页
This commit is contained in:
@@ -322,7 +322,16 @@ func adminUsers(c *httpapi.Ctx) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return c.OK(paged(c, rs))
|
||||
pg := paged(c, rs)
|
||||
items := pg["items"].([]store.Row)
|
||||
for _, it := range items {
|
||||
uid, cid := it.Int("id"), it.Int("couple_id")
|
||||
it["used_bytes"] = storageUsedBytes(c, uid, cid)
|
||||
it["storage_vip"] = isStorageVip(c, uid)
|
||||
it["storage_vip_expire_at"] = storageVipExpireAt(c, uid)
|
||||
}
|
||||
pg["items"] = items
|
||||
return c.OK(pg)
|
||||
}
|
||||
|
||||
func adminFixLastLogin(c *httpapi.Ctx) error {
|
||||
|
||||
Reference in New Issue
Block a user