chore(电子名片): API对外提供视频号数据
This commit is contained in:
@@ -576,6 +576,8 @@ class Member extends BaseApi
|
|||||||
|
|
||||||
$Personnelmodel = new PersonnelModel();
|
$Personnelmodel = new PersonnelModel();
|
||||||
$set = $Personnelmodel->getPersonnelSet($this->site_id, $this->app_module)[ 'data' ][ 'value' ];
|
$set = $Personnelmodel->getPersonnelSet($this->site_id, $this->app_module)[ 'data' ][ 'value' ];
|
||||||
|
//视频号数据
|
||||||
|
$channel_list = model('personnel_channel')->getList(['site_id'=>$this->site_id, 'is_show'=>1],'*','sort desc');
|
||||||
//视频文件
|
//视频文件
|
||||||
$video_list = model('personnel_video')->getList(['site_id'=>$this->site_id],'*','createtime desc');
|
$video_list = model('personnel_video')->getList(['site_id'=>$this->site_id],'*','createtime desc');
|
||||||
//企业文件
|
//企业文件
|
||||||
@@ -583,7 +585,7 @@ class Member extends BaseApi
|
|||||||
//电子名片diy
|
//电子名片diy
|
||||||
$config = $Personnelmodel->getPersonnelSet($this->site_id, $this->app_module)[ 'data' ][ 'value' ];
|
$config = $Personnelmodel->getPersonnelSet($this->site_id, $this->app_module)[ 'data' ][ 'value' ];
|
||||||
$config['value'] = json_decode($config['value'],true);
|
$config['value'] = json_decode($config['value'],true);
|
||||||
return $this->response(['code'=>'0','data'=>$list,'message'=>'操作成功','shop'=>$shop_info_result,'set'=>$set,'video_list'=>$video_list,'file_list'=>$file_list,'diy'=>$config['value']]);
|
return $this->response(['code'=>'0','data'=>$list,'message'=>'操作成功','shop'=>$shop_info_result,'set'=>$set,'channel_list'=>$channel_list, 'video_list'=>$video_list,'file_list'=>$file_list,'diy'=>$config['value']]);
|
||||||
}
|
}
|
||||||
//留言
|
//留言
|
||||||
public function message()
|
public function message()
|
||||||
|
|||||||
Reference in New Issue
Block a user