Explorar o código

get_last_time算法问题

lizhen_gitee hai 10 meses
pai
achega
c8520805e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: