chengkun
2025-05-29 a4b758d33b51ad771a11237fb72bc856dd9059b2
admin/model/msgconfig.class.php
@@ -54,11 +54,11 @@
         
         if($configNum>0){
            
            $templatesM->upInfo(array('name'=>trim($_POST['name'])),array('content'=>$content,'title'=>trim($_POST['title'])));
                $templatesM->upInfo(array('name' => trim($_POST['name'])), array('content' => $content, 'template_id' => $_POST['template_id'], 'title' => trim($_POST['title'])));
            
         }else{
            
            $templatesM->addInfo(array('name'=>trim($_POST['name']),'content'=>$content,'title'=>trim($_POST['title'])));
                $templatesM->addInfo(array('name' => trim($_POST['name']), 'content' => $content, 'template_id' => $_POST['template_id'], 'title' => trim($_POST['title'])));
         
         }
         
@@ -142,7 +142,8 @@
      }
      
       echo json_encode($returnArr);die;
        echo json_encode($returnArr);
        die;
   }