quanwei
2025-12-04 12913c1069347ea4b1f6ab87f480da0f8d8c646a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
 
namespace app\api\model\user;
 
use app\common\model\user\PointsLog as PointsLogModel;
 
/**
 * 积分变动明细模型
 */
class PointsLog extends PointsLogModel
{
    /**
     * 获取日志明细列表
     */
    public function getList($userId,$limit)
    {
        // 获取列表数据
        return $this->where('user_id', '=', $userId)
            ->order(['create_time' => 'desc'])
            ->paginate($limit);
    }
 
}