|
|
@@ -57,7 +57,7 @@ class Sys extends Model
|
|
|
*/
|
|
|
public function getDataInfo($code=""){
|
|
|
$sys = $this->where("id", 1)->find();
|
|
|
- $data = $sys->toArray();
|
|
|
+// $data = $sys->toArray();
|
|
|
//微信配置
|
|
|
if(empty($data["wxconfig"])){
|
|
|
$data["wxconfig"]=[
|
|
|
@@ -70,7 +70,7 @@ class Sys extends Model
|
|
|
"notify_url"=>""
|
|
|
];
|
|
|
}else{
|
|
|
-// $data["wxconfig"] = unserialize($data["wxconfig"]);
|
|
|
+ $data["wxconfig"] = unserialize($data["wxconfig"]);
|
|
|
}
|
|
|
//分享配置
|
|
|
if(empty($data["shareconfig"])){
|
|
|
@@ -81,7 +81,7 @@ class Sys extends Model
|
|
|
"content"=>"",
|
|
|
];
|
|
|
}else{
|
|
|
-// $data["shareconfig"] = unserialize($data["wxconfig"]);
|
|
|
+ $data["shareconfig"] = unserialize($data["wxconfig"]);
|
|
|
}
|
|
|
if($code=="weixin"){
|
|
|
return $data["wxconfig"];
|