|
@@ -6,7 +6,6 @@ import (
|
|
|
"pay/db"
|
|
|
"pay/db/repo"
|
|
|
"pay/utils"
|
|
|
- "strconv"
|
|
|
"time"
|
|
|
|
|
|
"github.com/nats-io/nats.go"
|
|
@@ -63,8 +62,9 @@ func getPayOrder(ctx context.Context, query map[string]interface{}) (order *pay.
|
|
|
CollectName: repo.CollectionOrder,
|
|
|
Query: query,
|
|
|
}, &order)
|
|
|
- amount, _ := strconv.ParseFloat(fmt.Sprintf("%.2f", *order.RealAmount), 64)
|
|
|
- order.RealAmount = &amount
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println(err)
|
|
|
+ }
|
|
|
return
|
|
|
}
|
|
|
|