Skip to content

Commit

Permalink
Merge branch 'feat/coupon' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sjatsh committed Nov 14, 2023
2 parents 0eb0ccd + 43989ae commit 43c34bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dao/t_coupon_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ func (d *DbDao) GetCouponByCode(code string) (res tables.CouponInfo, err error)
err = nil
return
}
if res.Id > 0 {
resCode, err := encrypt.AesDecrypt(res.Code, config.Cfg.Das.Coupon.EncryptionKey)
if err != nil {
return res, err
}
res.Code = resCode
}
return
}

Expand Down

0 comments on commit 43c34bd

Please sign in to comment.