SourceCode/jiouosdp/Areas/Keywords/Controllers/WelcomeMsgController.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RFrameGenerate.BLL;
using RFrameGenerate.Model;

namespace jiouosdp.Areas.Keywords.Controllers
{
    public class WelcomeMsgController : Controller
    {
        //
        // GET: /Keywords/WelcomeMsg/

        [PF(PCode.WeiXinManage.WelcomeMsg)]
        public ActionResult Index()
        {
            return View();
        }


        public JsonResult GetKeyWordList(GridModel gridModel)
        {
            //var klist = KeywordsManage.GetKeyWordList(gridModel,RFrameGenerate.BLL.DictionaryConst.WeiXinAutoReply.ReplyKeyword.Subscribe);

            //gridModel.datarows = (klist.Select(c => c.MaterialGuid != null ? new
            //{
            //    id = c.KeywordGuid,
            //    cell = new object[]
            //        {
            //            MaterialsManage.GetMaterialList(c.MaterialGuid.Value).Name,
            //            DictionaryConst.WeiXinAutoReply.MaterialType.GetMaterialByState(MaterialsManage.GetMaterialList(c.MaterialGuid.Value).MaterialType),
            //            c.MaterialGuid,
            //            ""
            //        }
            //} : null).ToArray());

            var klist = KeywordsManage.GetKeyList(RFrameGenerate.BLL.DictionaryConst.WeiXinAutoReply.ReplyKeyword.Subscribe);

            gridModel.datarows = (klist.Select(c => new
            {
                id = c.KeywordGuid,
                cell = new object[]
                    {
                        c.Name,
                        DictionaryConst.WeiXinAutoReply.MaterialType.GetMaterialByState( c.MaterialType),
                        c.MaterialGuid
                    }
            }).ToArray());

            return Json(gridModel.PackagePageModel());
        }
    }
}

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

AI 解读 AI

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

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