...
|
...
|
@@ -1095,18 +1095,17 @@ class Project extends Api |
|
|
->join('user b','a.user_id = b.id')
|
|
|
->field('a.*,b.avatar,b.nickname,a.createtime')
|
|
|
->where($where)
|
|
|
->select()
|
|
|
->toArray();
|
|
|
->select();
|
|
|
foreach ($data as &$v){
|
|
|
$v['is_zan'] = 1;
|
|
|
$v['createtime'] = date('Y-m-d H:i:s',$v['createtime']);
|
|
|
}
|
|
|
$data['num'] = Db::name('comment')
|
|
|
->alias('a')
|
|
|
->join('user b','a.user_id = b.id')
|
|
|
->field('a.*,b.avatar,b.nickname')
|
|
|
->where($where)
|
|
|
->count();
|
|
|
foreach ($data as &$v){
|
|
|
$v['is_zan'] = 1;
|
|
|
$v['createtime'] = date('Y-m-d H:i:s',$v['createtime']);
|
|
|
}
|
|
|
$this->success('success',$data);
|
|
|
}
|
|
|
$user_id = $this->getUserId();
|
...
|
...
|
|