...
|
...
|
@@ -166,7 +166,8 @@ class User extends Api |
|
|
* 我的-积分记录
|
|
|
* @ApiMethod (GET)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name="page", type="integer", description="页码")
|
|
|
* @ApiParams (name="rows", type="integer", required=true, description="每页条数")
|
|
|
* @ApiParams (name="page", type="integer", required=true, description="页码")
|
|
|
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
|
|
|
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
|
|
|
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
|
...
|
...
|
@@ -176,9 +177,10 @@ class User extends Api |
|
|
})
|
|
|
*/
|
|
|
public function scoreLog(){
|
|
|
$page = $this->request->request('page');
|
|
|
$rows = $this->request->request('rows',config('paginate.list_rows'));// 每页条数
|
|
|
$page = $this->request->request('page',1);// 页码
|
|
|
$score = $this->user['score'];
|
|
|
$list = $this->model->scoreLog($this->user['id'],$page);
|
|
|
$list = $this->model->scoreLog($this->user['id'],$page,$rows);
|
|
|
$this->success(__('成功'),compact('score','list'));
|
|
|
}
|
|
|
|
...
|
...
|
|