Преглед на файлове

wesmiler 报恩寺项目提交

wesmiler преди 4 години
родител
ревизия
a76da0e780
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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{