作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改地址

... ... @@ -45,6 +45,7 @@ class Info extends Api
*/
public function myfootprint()
{
$qiniu = get_addon_config('qiniu')['cdnurl'];
$page = $this->request->param('page', 1, 'intval');
$user_id = $this->getUserId();
$data['total_num'] = Db::name('footprint')->where('user_id',$user_id)->count();
... ... @@ -56,6 +57,9 @@ class Info extends Api
->page($page,10)
->order('a.createtime desc')
->select();
foreach ($data['info'] as &$v){
$v['image'] = $qiniu.$v['image'];
}
$this->success('success',$data);
}
... ...