Explorar o código

wesmiler 报恩寺项目提交

wesmiler %!s(int64=4) %!d(string=hai) anos
pai
achega
a76da0e780
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/MotionService.php

+ 1 - 1
app/Services/MotionService.php

@@ -62,7 +62,7 @@ class MotionService extends BaseService
             ->orderBy('days','desc')
             ->first();
         if($checkInfo){
-            $checkInfo->create_time = strtotime(datetime($checkInfo['create_time'], 'Y-m-d H:i:s'));
+            $checkInfo->create_time = strtotime(datetime($checkInfo->create_time, 'Y-m-d H:i:s'));
             if($checkInfo->create_time < strtotime(date('Y-m-d'))){
                 $days = $checkInfo->days+1;
             }else{