Explorar o código

wesmiler 报恩寺项目提交

wesmiler %!s(int64=4) %!d(string=hai) anos
pai
achega
78892dcaa2
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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;