Browse Source

更新内容

moshaorui 2 months ago
parent
commit
4db8ba3b6c
1 changed files with 3 additions and 4 deletions
  1. 3 4
      app/Admin/Repositories/SiteAlbumLog.php

+ 3 - 4
app/Admin/Repositories/SiteAlbumLog.php

@@ -44,13 +44,12 @@ class SiteAlbumLog extends EloquentRepository
         if (empty($content) == false) {
             $nickName = Admin::user()->name;
             $log = new Model();
-            $log->nick_name = $nickName;
+            $log->user_name = $nickName;
             $log->action = $action;
             $log->model = $model;
-            $log->content = json_encode($content);
-            $log->album_id = $albumId;
+            $log->content = implode(' ',$content);
+            $log->content_id = $albumId;
             $log->save();
         }
     }
-
 }