1
This commit is contained in:
@@ -144,17 +144,10 @@ func (a *API) GetCallbackUrlIndex(request *http.Request) (map[string]interface{}
|
|||||||
temp = map[string]interface{}{}
|
temp = map[string]interface{}{}
|
||||||
)
|
)
|
||||||
if err = json.Unmarshal(data, &temp); err == nil {
|
if err = json.Unmarshal(data, &temp); err == nil {
|
||||||
globals.SugarLogger.Debugf("GetCallbackUrlIndex temp=%s", utils.Format4Output(temp, false))
|
|
||||||
urlIndex = temp["url_index"].(string)
|
urlIndex = temp["url_index"].(string)
|
||||||
//orderStatus = temp["order_status"].(float64)
|
|
||||||
globals.SugarLogger.Debugf("GetCallbackUrlIndex urlIndex=%s", urlIndex)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
result := make(map[string]interface{}, 0)
|
result := make(map[string]interface{}, 0)
|
||||||
//if orderStatus == utils.Int2Float64(OrderStatusFinished) {
|
|
||||||
// urlIndex = UrlIndexOrderComplete
|
|
||||||
// globals.SugarLogger.Debugf("我在这 urlIndex=%s", urlIndex)
|
|
||||||
//}
|
|
||||||
switch urlIndex {
|
switch urlIndex {
|
||||||
case UrlIndexRiderStatus:
|
case UrlIndexRiderStatus:
|
||||||
retVal := RiderStatus{}
|
retVal := RiderStatus{}
|
||||||
|
|||||||
@@ -65,12 +65,12 @@ func TestCreateOrder(t *testing.T) {
|
|||||||
DevId: AppID,
|
DevId: AppID,
|
||||||
ShopId: TestSFStoreID,
|
ShopId: TestSFStoreID,
|
||||||
ShopType: 1,
|
ShopType: 1,
|
||||||
ShopOrderId: "2023090805",
|
ShopOrderId: "2023090806",
|
||||||
OrderSequence: "测试",
|
OrderSequence: "测试",
|
||||||
OrderSource: OrderSourceELM,
|
OrderSource: OrderSourceELM,
|
||||||
OrderTime: 1694167348,
|
OrderTime: 1694168441,
|
||||||
LbsType: LbsTypeGD,
|
LbsType: LbsTypeGD,
|
||||||
PushTime: 1694167348,
|
PushTime: 1694168441,
|
||||||
Version: 19,
|
Version: 19,
|
||||||
ReturnFlag: 511,
|
ReturnFlag: 511,
|
||||||
Receive: &ReceiveAddress{
|
Receive: &ReceiveAddress{
|
||||||
|
|||||||
Reference in New Issue
Block a user