|
@@ -509,7 +509,7 @@ class WeixinService extends Service
|
|
|
$detail = $detail->toArray();
|
|
|
if($detail['is_deleted']) return [false, '文章不存在或被删除'];
|
|
|
|
|
|
- if(empty($detail['content_name'])) return [true, 'content' => ''];
|
|
|
+ if(empty($detail['content_name'])) return [true, ['content' => '']];
|
|
|
|
|
|
// 定义本地文件路径
|
|
|
$name = $detail['content_name'] . '.txt';
|
|
@@ -518,6 +518,6 @@ class WeixinService extends Service
|
|
|
// 读取文件内容
|
|
|
$fileContent = file_get_contents($localFilePath);
|
|
|
|
|
|
- return [true, 'content' => $fileContent];
|
|
|
+ return [true, ['content' => $fileContent]];
|
|
|
}
|
|
|
}
|