public ActionResult Edit(string systemName) { PluginInfo pluginInfo = AdminPlugins.GetPluginBySystemName(systemName); if (pluginInfo == null) return PromptView("插件不存在"); PluginModel model = new PluginModel(); model.FriendlyName = pluginInfo.FriendlyName; model.Description = pluginInfo.Description; model.DisplayOrder = pluginInfo.DisplayOrder; ViewData["referer"] = ShopUtils.GetAdminRefererCookie(); return View(model); }
public ActionResult Edit(string systemName, PluginModel model) { PluginInfo pluginInfo = AdminPlugins.GetPluginBySystemName(systemName); if (pluginInfo == null) return PromptView("插件不存在"); AdminPlugins.Edit(systemName, model.FriendlyName, model.Description, model.DisplayOrder); AddAdminOperateLog("编辑插件", "编辑插件,插件为:" + systemName); return PromptView("插件编辑成功"); }