level 2
会员表fx_users 积分字段pay_points
2017年01月07日 03点01分
1
level 3
$User = M("users"); // 实例化User对象
$User->where('id=5')->setInc('pay_points',3); // 用户的积分
加3
2017年01月08日 16点01分
5
level 3
不知道你说的自动是主动 还是被动
主动 在服务器开启定时任务程序 定时执行
被动 写到 _initialize()就可以了
2017年01月08日 16点01分
6