コード例 #1
0
ファイル: DishCardAccountLogBLL.cs プロジェクト: soon14/vzan
        public void AddRecordLog(DishVipCard card, double account_money, string account_info)
        {
            DishCardAccountLog log = new DishCardAccountLog();

            log.account_money = account_money;
            log.account_info  = string.IsNullOrEmpty(account_info) ? "手动充值" : $"手动充值:{account_info}";
            log.account_type  = 1;
            log.add_time      = DateTime.Now;
            log.aId           = card.aid;
            log.shop_id       = card.shop_id;
            log.user_id       = card.uid;
            log.state         = 1;
            Add(log);

            //发 充值成功通知 模板消息
            DishStore store = DishStoreBLL.SingleModel.GetModelByAid_Id(card.aid, card.shop_id);
            object    curSortQueue_TemplateMsgObj = TemplateMsg_Miniapp.DishMessageData(store.dish_name, card, log, log.account_money, SendTemplateMessageTypeEnum.充值成功通知);

            TemplateMsg_Miniapp.SendTemplateMessage(log.user_id, SendTemplateMessageTypeEnum.充值成功通知, (int)TmpType.智慧餐厅, curSortQueue_TemplateMsgObj, $"pages/restaurant/restaurant-card/index?dish_id={log.shop_id}&savemoney=0");
        }