1
This commit is contained in:
@@ -155,12 +155,13 @@ func (a *API) GetCallbackUrlIndex(request *http.Request) (map[string]interface{}
|
||||
globals.SugarLogger.Debugf("GetCallbackUrlIndex temp=%s", utils.Format4Output(temp, false))
|
||||
urlIndex = temp["url_index"].(string)
|
||||
orderStatus = temp["order_status"].(float64)
|
||||
globals.SugarLogger.Debugf("GetCallbackUrlIndex urlIndex=%s,orderStatus=%d", urlIndex, orderStatus)
|
||||
globals.SugarLogger.Debugf("GetCallbackUrlIndex urlIndex=%s,orderStatus=%d", urlIndex, int(orderStatus))
|
||||
}
|
||||
|
||||
result := make(map[string]interface{}, 0)
|
||||
if orderStatus == OrderStatusFinished {
|
||||
if orderStatus == utils.Int2Float64(OrderStatusFinished) {
|
||||
urlIndex = UrlIndexOrderComplete
|
||||
globals.SugarLogger.Debugf("我在这 urlIndex=%s", urlIndex)
|
||||
}
|
||||
switch urlIndex {
|
||||
case UrlIndexRiderStatus:
|
||||
|
||||
@@ -65,12 +65,12 @@ func TestCreateOrder(t *testing.T) {
|
||||
DevId: AppID,
|
||||
ShopId: TestSFStoreID,
|
||||
ShopType: 1,
|
||||
ShopOrderId: "20230908-2",
|
||||
ShopOrderId: "20230908-3",
|
||||
OrderSequence: "测试",
|
||||
OrderSource: OrderSourceELM,
|
||||
OrderTime: 1694165402,
|
||||
OrderTime: 1694165716,
|
||||
LbsType: LbsTypeGD,
|
||||
PushTime: 1694165402,
|
||||
PushTime: 1694165716,
|
||||
Version: 19,
|
||||
ReturnFlag: 511,
|
||||
Receive: &ReceiveAddress{
|
||||
|
||||
Reference in New Issue
Block a user