chore(电子名片): 视频号增加说明及先去掉其他视频号的数据添加支持
This commit is contained in:
@@ -587,6 +587,19 @@ class Member extends BaseApi
|
||||
$config['value'] = json_decode($config['value'],true);
|
||||
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']]);
|
||||
}
|
||||
/**
|
||||
* 视频号观看次数+1
|
||||
*/
|
||||
public function incrementChannelViewCount()
|
||||
{
|
||||
$id = $this->params[ 'channel_id' ] ?? 0;
|
||||
if (empty($id)) {
|
||||
return $this->response($this->error('', '未传视频号id!'));
|
||||
}
|
||||
$cur_view_count = model('personnel_channel')->getValue(['channel_id'=>$id], 'view_count', 0);
|
||||
$res = model('personnel_channel')->update(['view_count'=>$cur_view_count+1],['channel_id'=>$id]);
|
||||
return $this->response(['code'=>'0','message'=>'操作成功', 'data'=>$res, 'channel_id'=>$id, 'pre_view_count'=>$cur_view_count]);
|
||||
}
|
||||
//留言
|
||||
public function message()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user