@@ -173,7 +171,7 @@
{if !empty($articles)}
{foreach $articles as $key=>$vo}
{if $articles|count gt 1}
- {if $key<1}
+ {if $key < 1}
@@ -209,7 +207,7 @@
- {date('Y年m月d日')}
+ {:date('Y年m月d日')}

diff --git a/extend/service/WechatService.php b/extend/service/WechatService.php
index 028ba8b10..a2009ba2c 100644
--- a/extend/service/WechatService.php
+++ b/extend/service/WechatService.php
@@ -68,6 +68,7 @@ class WechatService {
# 下载临时文件到本地
$filename = 'wechat/' . join('/', str_split($md5, 16)) . '.' . pathinfo($local_url, PATHINFO_EXTENSION);
$upload = FileService::local($filename, file_get_contents($local_url));
+
if (!empty($upload) && isset($upload['file']) && file_exists($upload['file'])) {
# 上传图片素材
$result = $wechat->uploadForeverMedia(array('media' => "@{$upload['file']}"), $type, $is_video, $video_info);