Пример #1
0
        public Respbase CreateShowNameFile(CreateShowReq req)
        {
            EmoticonFacade facade = new EmoticonFacade();

            facade.CreateShowNameFile(req);
            return(new Respbase {
                Result = facade.PromptInfo.Result, Message = facade.PromptInfo.Message
            });
        }
Пример #2
0
        /// <summary>
        /// 生成描述文件
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public bool CreateShowNameFile(CreateShowReq req)
        {
            var emoticon = db.TpxinEmoticonMaterialSet.Where(c => c.Id == req.ID && c.Typeid == 1).FirstOrDefault();

            if (emoticon == null)
            {
                Alert("表情包不存在");
                return(false);
            }
            CreateShowNameFile_Pro(emoticon.Filedir, req.Name, req.Typeid);

            return(true);
        }