// 获取砍价剩余时间 /** * @param $bargainOrder BargainOrder * @return int */ private function getTime($bargainOrder) { if($bargainOrder->status != 0){ return 0; }else{ $addtime = $bargainOrder->addtime; $time = $bargainOrder->time; $second = time() - $addtime; $timeSecond = $time * 3600; if ($second >= $timeSecond) { return 0; } return intval($timeSecond - $second); } }
YII之砍价剩余时间
最新推荐文章于 2022-08-03 11:27:09 发布