示例#1
0
        public static string UpdateWithdrawalStatus(int withdrawalRecordId, int status, string operatorIP, int operatorUserId, int accid, string operatorName)
        {
            string  iResult         = "0";
            decimal withdrawalMoney = 0;
            bool    isSaved         = CustomerCareBLL.UpdateWithdrawalStatus(withdrawalRecordId, status, operatorIP, operatorUserId);

            if (isSaved)
            {
                iResult = "1";
                if (status == 3)
                {
                    withdrawalMoney = CustomerCareBLL.GetWithdrawalMoneyByWithdrawalRecordId(withdrawalRecordId);
                    string msgTitle          = "提现成功提示";
                    string msgContent        = "您的" + withdrawalMoney.ToString() + "元提现金额今日已经成功汇出,请注意查收。";
                    int    sendMessage       = Utility.MessageCenter.PostMessage(accid.ToString(), msgTitle, msgContent, operatorUserId, operatorName, null);
                    int    sendMobileMessage = Utility.MessageCenter.PostMobileMessage(accid.ToString(), msgTitle, msgContent, operatorUserId, operatorName, null);
                }
            }
            return(iResult);
        }