crm
This commit is contained in:
@@ -18,16 +18,18 @@ class FollowService
|
||||
// $perPage = $request->input('per_page', 10);
|
||||
|
||||
//客户id
|
||||
$customer_id =$param['customer_id'];
|
||||
$customer_id = $param['customer_id'];
|
||||
$corp_abbr = $param['corp_abbr'];
|
||||
|
||||
$where = [];
|
||||
$where['customer_id'] = $customer_id;
|
||||
$where['corp_abbr'] = $corp_abbr;
|
||||
|
||||
//用户角色
|
||||
|
||||
//跟进id
|
||||
$id = $param['id']??null;
|
||||
if(!Util::isEmpty($id)){
|
||||
$id = $param['id'] ?? null;
|
||||
if (!Util::isEmpty($id)) {
|
||||
$where['id'] = $id;
|
||||
}
|
||||
|
||||
@@ -39,7 +41,7 @@ class FollowService
|
||||
|
||||
// $host = $request->host();
|
||||
// $url = 'http:'.$request->url();
|
||||
foreach ($data as &$value){
|
||||
foreach ($data as &$value) {
|
||||
$value = self::getFollow($value);
|
||||
}
|
||||
|
||||
@@ -47,15 +49,14 @@ class FollowService
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static function getFollow($follow,$domain = 'https://vehicle-album.oss-cn-beijing.aliyuncs.com')
|
||||
public static function getFollow($follow)
|
||||
{
|
||||
$follow['type_txt'] = Constants::FOLLOW[$follow['type']];
|
||||
$follow['firstFollowtime'] = $follow['follow_time'];
|
||||
$oss_picture = '';
|
||||
if(!empty($follow['picture'])){
|
||||
if (!empty($follow['picture'])) {
|
||||
$ossservice = new OssService();
|
||||
$oss_picture = $ossservice->generatePrivateUrl($follow['picture'],86400);
|
||||
$oss_picture = $ossservice->generatePrivateUrl($follow['picture'], 86400);
|
||||
}
|
||||
$follow['oss_picture'] = $oss_picture;
|
||||
// $follow = Util::formatDate($follow);
|
||||
|
||||
Reference in New Issue
Block a user