/// <summary> /// 订单取消,退款 /// 只要提交成功就一定能成功,特殊情况除外 /// </summary> /// <param name="order"></param> /// <param name="message"></param> /// <returns></returns> public static bool RefundOrder(PayHistory order, out string message) { if (order.Status != OrderStatus.已确认) { message = "此订单状态为" + order.Status; return(false); } Company.CompanyBase company = GetCompany(order.CompanyType); return(company.RefundOrder(order, out message)); }