Explorar el Código

Merge remote-tracking branch 'origin/develop' into develop

wzq hace 5 años
padre
commit
aef889fa2d
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      app/Repositories/BeanRepository.php

+ 1 - 2
app/Repositories/BeanRepository.php

@@ -221,8 +221,7 @@ class BeanRepository
                 ->select('post.*','post_data.pv')
                 ->find($request['post_id']);
             if ($post){
-                $created_at = $post_detail->created_at;
-                $post->created_time = Carbon::parse($created_at)->diffForHumans();
+                $post->created_time = Carbon::parse($post->created_at)->diffForHumans();
                 $imgs = [];
                 foreach($post->imgs as $img){
                     $imgs[] = $img['img'];