wesmiler 2 năm trước cách đây
mục cha
commit
2b2c2d0462
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/Services/Api/VideoCommentService.php

+ 1 - 0
app/Services/Api/VideoCommentService.php

@@ -231,6 +231,7 @@ class VideoCommentService extends BaseService
             return false;
         }
 
+        $updateData = ['update_time'=>time()];
         $updateData['like_num'] = ($status == 1 ? $info['like_num']+1 : max(0, $info['like_num']-1));
         if ($this->model->where(['id' => $id, 'mark' => 1])->update($updateData)) {
             if($status == 1){