Пример #1
0
        /// <summary>
        /// 发放积分
        /// </summary>
        /// <param name="rUserName">接收用户名</param>
        /// <param name="payCredits">支付积分</param>
        /// <param name="rankCredits">等级积分</param>
        /// <returns></returns>
        public ActionResult SendCredits(string rUserName, int payCredits = 0, int rankCredits = 0)
        {
            PartUserInfo partUserInfo = AdminUsers.GetPartUserByName(rUserName);

            if (partUserInfo == null)
            {
                return(PromptView("请输入正确的用户名"));
            }

            AdminCredits.AdminSendCredits(partUserInfo, payCredits, rankCredits, WorkContext.Uid, DateTime.Now);
            AddAdminOperateLog("发放积分", "支付积分为:" + payCredits + ",等级积分为:" + rankCredits);
            return(PromptView("积分发放成功"));
        }