计算访问次数。
程序员文章站
2024-01-04 12:08:04
...
跳至
[1]
[全屏预览]
$last_view = session('last_view_service'); $time = time(); if ($last_view + 10 uid; $data['type'] = 'service'; $data['row_id'] = $aId; $data['to_uid'] = $service['uid']; D('WekoStat')->addVisit($data); session('last_view_service', $time, 20); }