WIN-2308041133\Administrator hace 4 semanas
padre
commit
6446b94326
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/model/api/Sys.php

+ 2 - 2
app/model/api/Sys.php

@@ -48,7 +48,7 @@ class Sys extends Model
             "title"   => empty($data["title"])?"":$data["title"],
             "query"   => empty($data["query"])?"":$data["query"],
             "content" => empty($data["content"])?"":$data["content"],
-            "is_show" => empty($data["is_show"])?"":$data["is_show"],
+            "is_show" => empty($data["is_show"])?0:$data["is_show"],
         ];
         @file_put_contents('quanju.txt',  json_encode($save)."-应该保存的的传参\r\n", 8);
 
@@ -100,7 +100,7 @@ class Sys extends Model
             "title"=>"",
             "query"=>"",
             "content"=>"",
-            "is_show"=>"",
+            "is_show"=>0,
         ];
         if(!empty($sys->shareconfig)){
             $shareconfig = unserialize($sys->shareconfig);