Browse Source

hashCat展示修改

Former-commit-id: a6ad67b3d6
pull/9/head
zhangwei 1 year ago
parent
commit
4d9b7c2083
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      api/internal/logic/core/gethashcatlogic.go

+ 1
- 1
api/internal/logic/core/gethashcatlogic.go View File

@@ -40,7 +40,7 @@ func NewGetHashcatLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetHas
func (l *GetHashcatLogic) GetHashcat(req *types.GetHashcatHandlerReq) (resp *types.GetHashcatHandlerResp, err error) {
// todo: add your logic here and delete this line
var hashcat *models.THashcat
tx := l.svcCtx.DbEngin.Where("crack_task_id = ?", req.CrackTaskId).Find(&hashcat)
tx := l.svcCtx.DbEngin.Where("crack_task_id = ?", req.CrackTaskId).Order("id desc").Limit(1).Find(&hashcat)
if tx.Error != nil {
return nil, tx.Error
}


Loading…
Cancel
Save