|
@@ -271,14 +271,16 @@ class Api extends Core
|
|
|
# 获取合集下的内容
|
|
|
public function getContent()
|
|
|
{
|
|
|
+ # 获取用户信息
|
|
|
+ $data['user'] = $this->user;
|
|
|
+ $data['info'] = $this->checkInfo();
|
|
|
$data['info_id'] = $this->id_code;
|
|
|
+
|
|
|
$data['page_id'] = $this->page_id;
|
|
|
$data['parent_page_id'] = $this->parent_page_id;
|
|
|
$data['index'] = $this->index;
|
|
|
$data['times_id'] = $this->times;
|
|
|
- # 获取用户信息
|
|
|
- $data['user'] = $this->user;
|
|
|
- $data['info'] = $this->checkInfo();
|
|
|
+
|
|
|
if ($data['info']['buy'] == 2) {
|
|
|
Dever::load('user/lib/collection')->upAct($this->uid, $this->id, 1, $this->share_uid);
|
|
|
}
|