瀏覽代碼

时间格式 毫秒

visuddhinanda@gmail.com 4 年之前
父節點
當前提交
c579e9ca4a
共有 1 個文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      app/Models/ProgressChapter.php

+ 3 - 0
app/Models/ProgressChapter.php

@@ -15,6 +15,9 @@ class ProgressChapter extends Model
             'uid' => 'string'
         ];
     protected $primaryKey = 'uid';
+    
+    protected $dateFormat = 'U';
+
     public function tagid()
     {
         return $this->hasOne('App\Models\TagMap', 'anchor_id', 'uid'); //参数一:需要关联的子表类名,前面必须加上命名空间  参数二:子表关联父表的字段  参数三:父表关联子表的字段