diff --git a/application/api/model/Ranking.php b/application/api/model/Ranking.php index 8983f3eb..40019dbe 100644 --- a/application/api/model/Ranking.php +++ b/application/api/model/Ranking.php @@ -157,8 +157,8 @@ class Ranking extends Model //金币与魅力比例 $ratio = get_system_config_value('coin_charm_exp'); //时间转为天 - $begin_time = strtotime(date('Y-m-d',$this->begin_time)); - $end_time = strtotime(date('Y-m-d',$this->end_time)); + $begin_time = date('Y-m-d',$this->begin_time); + $end_time = date('Y-m-d',$this->end_time); //获取当前用户的房间id $myRoom = db::name('vs_room')->where(['user_id' => UID ,'room_status' => 1])->find();