Sfoglia il codice sorgente

Wesmiler OTC 提交更新 0729

APPLE 3 anni fa
parent
commit
45e28a5520
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app/Services/Common/ArticleService.php

+ 2 - 0
app/Services/Common/ArticleService.php

@@ -153,6 +153,8 @@ class ArticleService extends BaseService
         // 开始时间
         if ($data['post_time']) {
             $data['post_time'] = strtotime($data['post_time']);
+        }else{
+            $data['post_time'] = time();
         }
 
         return parent::edit($data); // TODO: Change the autogenerated stub