Ejemplo n.º 1
0
        public async Task <ResponseMessage> LotteryBetTest([FromRoute] string periodId)
        {
            var response = new ResponseMessage();

            try
            {
                response = await _giftManager.LotteryBetTestAsync(periodId, HttpContext.RequestAborted);
            }
            catch (Exception e)
            {
                response.Code    = ResponseCodeDefines.ServiceError;
                response.Message = e.Message;
                Logger.Error($"彩票投注,报错:{e.Message}\r\n{e.StackTrace}");
            }
            return(response);
        }