예제 #1
0
        public static void AutoRepaySimulate(DateTime?runAt = null)
        {
            CheckDelayInvestOverTime.DoCheckDelayInvestOverTime(TimerMsg.Type.AutoRepayTimer, false);

            AutoRepay.DoGainLoanerRepayment(TimerMsg.Type.LoanerRepayTimer, false);

            AutoRepay.CheckStaticProjectWithdrawOvertime(TimerMsg.Type.AutoRepayTimer, false);
            AutoRepay.GenerateHuoqiRepaymentTask(TimerMsg.Type.AutoRepayTimer, false);
            AutoRepay.DoRepay(TimerMsg.Type.AutoRepayTimer, false);
            ProjectWithdraw.HuoqiClaimTransferToCompanyWhenNeeded(TimerMsg.Type.AutoRepayTimer, false);
            ProjectWithdraw.DoHuoqiProjectWithdraw(TimerMsg.Type.AutoRepayTimer, false, runAt.GetValueOrDefault(DateTime.Now));

            TrialTicketActivity.HandleTimerMsg(TimerMsg.Type.AutoRepayTimer, false);
            InterestRateTicketActivity.HandleTimerMsg(TimerMsg.Type.AutoRepayTimer, false);
        }
예제 #2
0
        void Project_Init(object sender, EventArgs e)
        {
            //客户余额
            if (!IsUserLogin())
            {
                return;
            }

            //设置奖券过期状态
            InterestRateTicketActivity.HandleTimerMsg(TimerMsg.Type.AutoRepayTimer, true);

            var user = GetUserInfoByLinq();

            has_email  = !string.IsNullOrEmpty(user.email);
            idle_money = user.li_wallets.idle_money;
            actt       =
                user.li_activity_transactions.Where(
                    a =>
                    LotteryTypes.Contains(a.activity_type) &&
                    a.status == (int)Agp2pEnums.ActivityTransactionStatusEnum.Acting).ToList();
        }