public JsonResult SynchAliPayPaymentResult(decimal orderId) { try { bool result = OnlineOrderServices.SyncPaymentResult(orderId); if (!result) { throw new MyException("同步失败"); } return(Json(MyResult.Success())); } catch (MyException ex) { return(Json(MyResult.Error(ex.Message))); } catch (Exception ex) { ExceptionsServices.AddExceptions(ex, "同步支付结果失败"); return(Json(MyResult.Error("同步支付结果失败"))); } }