SourceCode/jiouosdp/Areas/WeiXinBase/Controllers/MaterialController.cs

(开头部分) 5KB

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

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RFrameGenerate.BLL;
using RFrameGenerate.Common;
using RFrameGenerate.Model;
using RFrameGenerate.BLL.WX_BaseCommon;
using LitJson;

namespace jiouosdp.Areas.WeiXinBase.Controllers
{
    public class MaterialController : Controller
    {
        //
        // GET: /BaseCommon/Material/



        public ActionResult Manage()
        {
            return View();
        }

        public ActionResult Edit(string guid)
        {
            try
            {
                var model = new T_WX_Material();
                if (!string.IsNullOrEmpty(guid))
                {
                    //update
                    ViewBag.TabTitle = "编辑素材";
                    model = BaseCommonBLL.GetMaterialByGuid(new Guid(guid));
                }
                else
                {
                    //add
                    ViewBag.TabTitle = "新增素材";
                    model.Createdate = DateTime.Now;
                    
                }
                if (string.IsNullOrEmpty(model.MaterialCoverFace))
                {
                    model.MaterialCoverFace = "/images/manage/imgBlank.jpg"; 
                }
                return View(model);
            }
            catch (Exception e)
            {
                ViewBag.Error = e.Message;
                return View();
            }
        }


        public JsonResult Delete(string guid)
后面还有 104 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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