wesmiler 1 giorno fa
parent
commit
a37ce8878b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Models/GoodsCommentModel.php

+ 1 - 1
app/Models/GoodsCommentModel.php

@@ -27,7 +27,7 @@ class GoodsCommentModel extends BaseModel
     // 时间
     public function getTimeTextAttribute()
     {
-        return $this->create_time? datetime($this->create_time,'Y-m-d H:i:s') : '';
+        return $this->create_time? dateFormat($this->create_time,'Y-m-d') : '';
     }
 
     /**