Esempio n. 1
0
        public BaseResultDto <string> GiveVirtualMoney(GiveVirtualMoneyDto model)
        {
            BaseResultDto <string> resultDto = new BaseResultDto <string>();

            try
            {
                RQProcParam proc = new RQProcParam();
                proc.ProcName = "Proc_GiveVirtualMoney";
                proc.DicParam.Add("Ids", model.Ids);
                proc.DicParam.Add("IsAllUser", model.IsAllUser);
                proc.DicParam.Add("GiveMoney", model.GiveMoney);
                proc.DicParam.Add("BountyType", model.BountyType);
                proc.DicParam.Add("BountyRes", model.BountyRes);
                proc.DicParam.Add("OverTime", model.OverTime);
                proc.DicParam.Add("OperatorUserId", model.OperatorUserId);
                proc.DicParam.Add("OperatorUserName", model.OperatorUserName);
                proc.DicParam.Add("IP", model.IP);
                int status = helper.ExecReturnByProc(proc).ToInt();
                if (status == 0)
                {
                    resultDto.ErrorMsg  = "赠送成功";
                    resultDto.ErrorCode = 1;
                    resultDto.IsSeccess = true;
                }
                else
                {
                    resultDto.ErrorMsg  = "赠送失败";
                    resultDto.ErrorCode = 0;
                }
            }
            catch (Exception ex)
            {
                resultDto.ErrorMsg  = ex.Message;
                resultDto.ErrorCode = -1;
            }
            return(resultDto);
        }