...
|
...
|
@@ -28,6 +28,10 @@ class Collect extends WechatBase |
|
|
}
|
|
|
|
|
|
public function index(){
|
|
|
$user = Db::name('user')->where(['id'=>$this->user_id])->find();
|
|
|
if(empty($user)){
|
|
|
$this->error('查无此人');
|
|
|
}
|
|
|
$data = Db::name('collect')
|
|
|
->alias('c')
|
|
|
->field('g.*,c.id as c_id')
|
...
|
...
|
@@ -36,6 +40,7 @@ class Collect extends WechatBase |
|
|
foreach($data as $key => $vo){
|
|
|
$data[$key]['end_time'] = date('Y-m-d',$vo['end_time']);
|
|
|
}
|
|
|
$this->assign('user',$user);
|
|
|
$this->assign('data',$data);
|
|
|
$this->assign('title','我的收藏');
|
|
|
return $this->fetch();
|
...
|
...
|
|