1
This commit is contained in:
@@ -55,11 +55,18 @@ func GetOrderIDFromMap(orderMap map[string]interface{}) string {
|
||||
}
|
||||
|
||||
func GetAfsIDFromMap(orderMap map[string]interface{}) string {
|
||||
if orderID := orderMap["refund_order_id"]; orderID != nil {
|
||||
if tryOrderID, ok := orderID.(string); ok {
|
||||
return tryOrderID
|
||||
}
|
||||
return utils.Int64ToStr(utils.MustInterface2Int64(orderID))
|
||||
//if orderID := orderMap["refund_order_id"]; orderID != nil {
|
||||
// if tryOrderID, ok := orderID.(string); ok {
|
||||
// return tryOrderID
|
||||
// }
|
||||
// return utils.Int64ToStr(utils.MustInterface2Int64(orderID))
|
||||
//}
|
||||
//return ""
|
||||
|
||||
ReverseOderList := orderMap["reverse_order_list"].([]interface{})
|
||||
if len(ReverseOderList) != 0 {
|
||||
afsInfo := ReverseOderList[len(ReverseOderList)-1].(map[string]interface{})
|
||||
return afsInfo["refund_order_id"].(string)
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user