1
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/globals"
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -186,9 +185,3 @@ func TestQueryOrder(t *testing.T) {
|
|||||||
globals.SugarLogger.Debug("data:= %s", utils.Format4Output(data, false))
|
globals.SugarLogger.Debug("data:= %s", utils.Format4Output(data, false))
|
||||||
globals.SugarLogger.Debug("err:= %s", utils.Format4Output(err, false))
|
globals.SugarLogger.Debug("err:= %s", utils.Format4Output(err, false))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTime(t *testing.T) {
|
|
||||||
fmt.Println(time.Now().UnixNano() / 1e6)
|
|
||||||
fmt.Println(1683530814777)
|
|
||||||
fmt.Println(time.Now().UnixNano()/1e6 - 1683530814777)
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/baseapi/platformapi"
|
"git.rosy.net.cn/baseapi/platformapi"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"sort"
|
"sort"
|
||||||
@@ -346,7 +347,8 @@ func (a *API) QueryOrderStatus(deliveryId int64, mtPeiSongId string) (retVal map
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
result.Data["delivery_fee"] = utils.MustInterface2Float64(result.Data["delivery_fee"]) + utils.MustInterface2Float64(utils.WayBillDeliveryMarkUp)
|
globals.SugarLogger.Debugf("QueryOrderStatus===========: %s", utils.Format4Output(result, false))
|
||||||
|
result.Data["delivery_fee"] = utils.MustInterface2Float64(result.Data["delivery_fee"]) + (float64(utils.WayBillDeliveryMarkUp) / 100)
|
||||||
result.Data["pay_amount"] = utils.MustInterface2Float64(result.Data["pay_amount"])
|
result.Data["pay_amount"] = utils.MustInterface2Float64(result.Data["pay_amount"])
|
||||||
return result.Data, nil
|
return result.Data, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user