/// <summary> /// 退款 /// </summary> /// <param name="aid"></param> /// <param name="storeId"></param> /// <param name="orderId"></param> /// <returns></returns> public ActionResult Refund(int aid = 0, int storeId = 0, int orderId = 0) { if (aid <= 0 || storeId <= 0 || orderId <= 0) { result.msg = "参数错误"; return(Json(result)); } PinGoodsOrderBLL pinGoodsOrderBLL = new PinGoodsOrderBLL(); PinGoodsOrder order = pinGoodsOrderBLL.GetModelByAid_StoreId_Id(aid, storeId, orderId); if (order == null) { result.msg = "订单错误"; return(Json(result)); } string msg = string.Empty; result.code = pinGoodsOrderBLL.Refund(order, ref msg); result.msg = msg; return(Json(result)); }