mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改图文推送内容图片显示问题 #84
This commit is contained in:
parent
abb3f97819
commit
977398a21e
@ -64,7 +64,7 @@ class MediaService
|
|||||||
public static function uploadImage($local_url)
|
public static function uploadImage($local_url)
|
||||||
{
|
{
|
||||||
$map = ['md5' => md5($local_url)];
|
$map = ['md5' => md5($local_url)];
|
||||||
if (!($media_url = Db::name('WechatNewsImage')->where($map)->value('media_url'))) {
|
if (($media_url = Db::name('WechatNewsImage')->where($map)->value('media_url'))) {
|
||||||
return $media_url;
|
return $media_url;
|
||||||
}
|
}
|
||||||
$info = WechatService::media()->uploadImg(self::getServerPath($local_url));
|
$info = WechatService::media()->uploadImg(self::getServerPath($local_url));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user