Silent 6 年之前
父節點
當前提交
b003733357
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Http/Controllers/WeChat/ApiController.php

+ 2 - 2
app/Http/Controllers/WeChat/ApiController.php

xqd xqd
@@ -306,7 +306,7 @@ class ApiController extends Controller
             }
             $article_list = Content::where('type', 4)->orderBy('sort')->offset($article_offset)->limit(15)->get();
             foreach($article_list as $item) {
-                $item->pulish_date = substr($item->updated_at, 0, 10);
+                $item->publish_date = substr($item->updated_at, 0, 10);
             }
             return response()->json(['status' => 'success', 'video_list' => $video_list, 'article_list' => $article_list, 'type' => $request->input('type')]);
         } else if($request->input('type') == 'video') {
@@ -322,7 +322,7 @@ class ApiController extends Controller
         } else {
             $list = Content::where('type', 4)->orderBy('sort')->offset($article_offset)->limit(15)->get();
             foreach($list as $item) {
-                $item->pulish_date = substr($item->updated_at, 0, 10);
+                $item->publish_date = substr($item->updated_at, 0, 10);
             }
         }