|
@@ -10,6 +10,7 @@ namespace App\Transformers\Post;
|
|
|
use App\Models\PostComment;
|
|
|
use App\Traits\UserTrait;
|
|
|
use Carbon\Carbon;
|
|
|
+use Illuminate\Support\Facades\Log;
|
|
|
use Illuminate\Support\Facades\Redis;
|
|
|
use League\Fractal\TransformerAbstract;
|
|
|
|
|
@@ -24,6 +25,7 @@ class CommentTransformer extends TransformerAbstract
|
|
|
if($replyData){
|
|
|
$reply = json_decode($replyData);
|
|
|
foreach($reply as &$item){
|
|
|
+ Log::debug("回复created_at".$item['created_at']);
|
|
|
$item['created_at'] = Carbon::parse($item['created_at'])->diffForHumans();
|
|
|
}
|
|
|
}else{
|