Commit 2e685732 by 冷斌

fix bug

parent 01bc12f7
......@@ -1101,9 +1101,10 @@ class Api_Live extends PhalApi_Api {
$pk_time=DI()->redis -> hGet('LivePK_timer',$pkuid);
}
// $nowtime=time();
if($pk_time && $pk_time >0 && $pk_time< $nowtime){
// if($pk_time && $pk_time >0 && $pk_time < $nowtime){
if($pk_time && $pk_time >0){
$cha=5*60 - ($nowtime - $pk_time);
$pkinfo['pk_time']=(string)$cha;
$pkinfo['pk_time']= $cha > 0 ? (string)$cha : "0";
$pk_time_end = $pk_time + 5*60;
$where =" type='expend' and action in ('sendgift','sendbarrage') and addtime BETWEEN {$pk_time} AND {$pk_time_end}";
// $pk_gift_liveuid=DI()->redis -> hGet('LivePK_gift',$liveuid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment