Commit 0c173632 by 冷斌

fix bug

parent 2516e70b
......@@ -1105,7 +1105,7 @@ class Api_Live extends PhalApi_Api {
$pk_time=DI()->redis -> hGet('LivePK_timer',$pkuid);
}
if($pk_time && $pk_time >0){
if($pk_time && $pk_time >0 && $pk_time < $nowtime){
$cha=5*60 - ($nowtime - $pk_time);
$pkinfo['pk_time']= $cha > 0 ? (string)$cha : "0";
$pk_time_start = $pk_time;
......@@ -1126,6 +1126,9 @@ class Api_Live extends PhalApi_Api {
$pkinfo['pk_gift_pkuid']=(string)$pk_gift_pkuid;
}
if ($ph_time > $nowtime && $pk_time > $nowtime ) {
$pkinfo['ifpk'] = "0";
}
......
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