소스 검색

get_last_time算法问题

lizhen_gitee 10 달 전
부모
커밋
c8520805e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/common.php

+ 1 - 1
application/common.php

@@ -635,7 +635,7 @@ if (!function_exists('get_last_time')) {
         $t = $nowtime - $time; //时间差 (秒)
         $y = date('Y', $time)-date('Y', $nowtime);//是否跨年
         switch($t){
-            case $t == 0:
+            case $t = 0:
                 $text = '刚刚';
                 break;
             case $t < 60: