chengkun
2025-04-29 ab5d7bddae4557b9d56d17f21fc8ca232d7d8693
admin/model/model_config.class.php
@@ -19,6 +19,7 @@
        $this->yunset('newModel',$newModel);
      $this->yuntpl(array('admin/admin_model_config'));
   }
   function save_action(){
      $NavigationM   =   $this -> MODEL('navigation');
      $ConfigM      =   $this -> MODEL('config');
@@ -51,6 +52,7 @@
         $this->ACT_layer_msg("模块设置修改成功!",9,"index.php?m=model_config",2,1);
      }
   }
   function setnav_action(){
      $NavigationM   =   $this -> MODEL('navigation');
       if($_GET["config"]){
@@ -78,15 +80,19 @@
         );
         if($_POST['id']){
            $nbid   =   $NavigationM -> upNav($postData,array('id'=>$_POST['id']));
            $this->navcache();
         }else{
            $nbid   =   $NavigationM -> addNav($postData);
            $this -> navcache();
         }
            if (!$nbid) {
                $this->layer_msg('导航设置失败!', 8);
            }
//            var_dump($nbid);exit;
            $this->navcache();
         $this->layer_msg('导航设置成功!',9);
         
      }
   }
   function setseo_action(){
      $SeoM   =   $this -> MODEL('seo');
       if($_GET["config"]){
@@ -117,6 +123,7 @@
         $this -> layer_msg('SEO设置成功!',9);
      }
   }
   function getseo_action(){
      $SeoM   =   $this -> MODEL('seo');
      if($_POST['id']){
@@ -133,11 +140,13 @@
         echo json_encode($data);
      }
   }
   function  navcache(){
      include(LIB_PATH."cache.class.php");
      $cacheclass   =   new cache(PLUS_PATH,$this->obj);
      $makecache   =   $cacheclass -> menu_cache("menu.cache.php");
   }
   function  seocache(){
      include(LIB_PATH."cache.class.php");
      $cacheclass   =   new cache(PLUS_PATH,$this->obj);