Browse Source

朋友圈发布的图片合并一张图3

author
wanghongjun 6 months ago
parent
commit
075b9d9b60
  1. 3
      app/enterprise/model/Posts.php

3
app/enterprise/model/Posts.php

@ -33,6 +33,9 @@ class Posts extends BaseModel
$dirPath=app()->getRootPath().'public/temp';
$fileName = $posts_id . time();
$path=$dirPath.'/'.$fileName.'.jpg';
foreach ($imageFileArr as $key => $imageSrc) {
$imageFileArr[$key] = getDiskUrl() .'/'. ltrim($imageSrc,'/');
}
$avatar = getGroupAvatar($imageFileArr,1, $path);
$url='';
if($avatar){

Loading…
Cancel
Save