feat: add mj image list component for mobile page. fixed bug for html tag escape

This commit is contained in:
RockYang
2024-02-15 11:39:04 +08:00
parent 013b319fab
commit 0af01f6f1f
13 changed files with 479 additions and 21 deletions

View File

@@ -201,7 +201,7 @@ func (p *ServicePool) SyncTaskProgress() {
for _, v := range items {
// 30 分钟还没完成的任务直接删除
if time.Now().Sub(v.CreatedAt) > time.Minute*30 {
p.db.Delete(&v)
//p.db.Delete(&v)
// 非放大任务,退回绘图次数
if v.Type != types.TaskUpscale.String() {
p.db.Model(&model.User{}).Where("id = ?", v.UserId).UpdateColumn("img_calls", gorm.Expr("img_calls + ?", 1))

View File

@@ -1 +0,0 @@
package wanx