|
|
@@ -44,9 +44,10 @@ class Sys extends Model
|
|
|
*/
|
|
|
public function saveShareConfig($data){
|
|
|
$save=[
|
|
|
- "img" => empty($data["img"]) ?"":$data["img"],
|
|
|
- "title" => empty($data["title"])?"":$data["title"],
|
|
|
- "query" => empty($data["query"])?"":$data["query"],
|
|
|
+ "img" => empty($data["img"]) ?"":$data["img"],
|
|
|
+ "title" => empty($data["title"])?"":$data["title"],
|
|
|
+ "query" => empty($data["query"])?"":$data["query"],
|
|
|
+ "content" => empty($data["content"])?"":$data["content"],
|
|
|
];
|
|
|
$this->where("id",1)->update(["shareconfig"=> serialize($save)]);
|
|
|
}
|
|
|
@@ -69,7 +70,7 @@ class Sys extends Model
|
|
|
"notify_url"=>""
|
|
|
];
|
|
|
}else{
|
|
|
- $data["wxconfig"] = unserialize($data["wxconfig"]);
|
|
|
+// $data["wxconfig"] = unserialize($data["wxconfig"]);
|
|
|
}
|
|
|
//分享配置
|
|
|
if(empty($data["shareconfig"])){
|
|
|
@@ -77,9 +78,10 @@ class Sys extends Model
|
|
|
"img"=>"",
|
|
|
"title"=>"",
|
|
|
"query"=>"",
|
|
|
+ "content"=>"",
|
|
|
];
|
|
|
}else{
|
|
|
- $data["shareconfig"] = unserialize($data["wxconfig"]);
|
|
|
+// $data["shareconfig"] = unserialize($data["wxconfig"]);
|
|
|
}
|
|
|
if($code=="weixin"){
|
|
|
return $data["wxconfig"];
|