图片路径
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
namespace app\model;
|
namespace app\model;
|
||||||
|
|
||||||
|
|
||||||
|
use app\service\OssService;
|
||||||
use app\util\Util;
|
use app\util\Util;
|
||||||
use config\constants\Constants;
|
use config\constants\Constants;
|
||||||
use support\Model;
|
use support\Model;
|
||||||
@@ -51,7 +52,9 @@ class Follow extends Model
|
|||||||
{
|
{
|
||||||
$follow['type_txt'] = Constants::FOLLOW[$follow['type']];
|
$follow['type_txt'] = Constants::FOLLOW[$follow['type']];
|
||||||
$follow['firstFollowtime'] = $follow['follow_time'];
|
$follow['firstFollowtime'] = $follow['follow_time'];
|
||||||
$follow['oss_picture'] = $domain.'/'.$follow['picture'].'?OSSAccessKeyId=LTAI5tAGiH7bkVkmrniXnfkA&Signature=qRqclCNyGUdb0UHLy4z9f8gXn5c%3Dg&Expires='.time();
|
$ossservice = new OssService();
|
||||||
|
$oss_picture = $ossservice->generatePrivateUrl($follow['picture'],86400);
|
||||||
|
$follow['oss_picture'] = $oss_picture;
|
||||||
// $follow = Util::formatDate($follow);
|
// $follow = Util::formatDate($follow);
|
||||||
return $follow;
|
return $follow;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user