mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-08 02:36:16 +00:00
修复:优化创建交易流程代码,将金额修改为保留3位小数点
This commit is contained in:
@@ -2,7 +2,6 @@ package handle
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/assimon/luuu/model/data"
|
||||
"github.com/assimon/luuu/model/mdb"
|
||||
"github.com/hibiken/asynq"
|
||||
@@ -28,8 +27,7 @@ func OrderExpirationHandle(ctx context.Context, t *asynq.Task) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
actualAmount := fmt.Sprintf("%.4f", orderInfo.ActualAmount)
|
||||
err = data.ClearPayCache(orderInfo.Token, actualAmount)
|
||||
err = data.UnLockTransaction(orderInfo.Token, orderInfo.ActualAmount)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user