Przeglądaj źródła

wesmiler 报恩寺项目提交

wesmiler 4 lat temu
rodzic
commit
78892dcaa2
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      app/Services/MotionService.php

+ 1 - 2
app/Services/MotionService.php

@@ -62,8 +62,7 @@ class MotionService extends BaseService
             ->orderBy('days','desc')
             ->first();
         if($checkInfo){
-            $dateTime = strtotime(date('Y-m-d', $checkInfo->create_time));
-            if($dateTime < strtotime(date('Y-m-d'))){
+            if($checkInfo->create_time < strtotime(date('Y-m-d'))){
                 $days = $checkInfo->days+1;
             }else{
                 $days = $checkInfo->days;