QiFeng.ZWY.Bll/WechatParamQrCode.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Linq;
using QiFeng.LMSD.Dal;
using QiFeng.LMSD.Model;
using QiFeng.LMSD.Utility;

namespace QiFeng.LMSD.Bll
{
    public class WechatParamQrCodeBll : BaseBll<WechatParamQrCodeBll>
    {
        /// <summary>
        /// 检查并创建对应公众号的参数二维码
        /// </summary>
        /// <param name="tableName"></param>
        public Result<string> CheckAndCreateNewWechatParamQrCodeTable(string tableName)
        {
            if (string.IsNullOrWhiteSpace(tableName))
            {
                return new Result<string>
                {
                    Status = false,
                    Message = "Error Create event history table",
                    Data = string.Empty
                };
            }

            try
            {
                WechatParamQrCodeDal.Instance.CheckAndCreateNewWechatParamQrCodeTable(tableName);
                return new Result<string>
                {
                    Status = true,
                    Message = "Success",
                    Data = string.Empty
                };
            }
            catch (Exception ex)
            {
                _fileLog.Error("WechatParamQrCodeBll | CheckAndCreateNewWechatParamQrCodeTable | Exception: " + ex.Message +
                               ex.StackTrace);
                return new Result<string>
                {
                    Status = false,
                    Message = ex.Message,
                    Data = string.Empty
                };
            }
        }

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(WechatParamQrCode model, string tableName)
        {
            return WechatParamQrCodeDal.Instance.Add(model, tableName);
        }

        /// <summary>
        /// 得到一个对象实体By Ticket
        /// </summary>
后面还有 28 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。