另外测试:如果10秒钟内快速操作两次,超过10秒,字段值仍未变化,再执行延迟操作一次,字段值直接+3.
是本来就这么设计的么?还是我的操作有误。
贴代码
$ff = D('ForumForums');
$result = $ff->switchModel("Adv")->where('id = '.$fid['forum_id'])->setLazyInc('post_num',1,10);注:forumforumsmodel 里继承的是 relationModel 最佳答案
$ff = D('ForumForums');
$result = $ff->switchModel("Adv")->where('id = '.$fid['forum_id'])->setLazyInc('post_num',1,10);注:forumforumsmodel 里继承的是 relationModel