/// <summary> /// 足彩投注,用户保存的订单 /// </summary> public CommonActionResult SaveOrderSportsBettingByResult(Sports_BetingInfo info, string userid) { // 验证用户身份及权限 //var userId = GameBizAuthBusiness.ValidateUserAuthentication(userToken); try { //栓查是否实名 //if (!BusinessHelper.IsUserValidateRealName(userId)) // throw new LogicException("未实名认证用户不能购买彩票"); CheckDisableGame(info.GameCode, info.GameType); BettingHelper.CheckGameCodeAndType(info.GameCode, info.GameType); // 检查订单基本信息 BettingHelper.CheckSchemeOrder(info); string schemeId = new Sports_Business().SaveOrderSportsBetting(info, userid); //! 执行扩展功能代码 - 提交事务后 BusinessHelper.ExecPlugin <IBettingSport_AfterTranCommit>(new object[] { userid, info, schemeId }); return(new CommonActionResult { IsSuccess = true, ReturnValue = schemeId + "|" + info.TotalMoney, Message = "保存订单成功", }); } catch (LogicException ex) { throw ex; } catch (Exception ex) { throw new Exception("保存订单异常,请重试 ", ex); } }