wesmiler hace 1 día
padre
commit
a37ce8878b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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') : '';
     }
 
     /**