hashCat展示修改

Former-commit-id: a6ad67b3d6993ab60b8ab62c03a66dc08dd72608
This commit is contained in:
zhangwei 2023-12-14 17:14:43 +08:00
parent 347313fb14
commit 4d9b7c2083
1 changed files with 1 additions and 1 deletions

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) { func (l *GetHashcatLogic) GetHashcat(req *types.GetHashcatHandlerReq) (resp *types.GetHashcatHandlerResp, err error) {
// todo: add your logic here and delete this line // todo: add your logic here and delete this line
var hashcat *models.THashcat 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 { if tx.Error != nil {
return nil, tx.Error return nil, tx.Error
} }