ChapterCommentsService.php 586 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: tandunzhao
  5. * Date: 2017/12/4
  6. * Time: 下午1:57
  7. */
  8. namespace App\Modules\Book\Services;
  9. use App\Modules\Book\Models\ChapterComments;
  10. class ChapterCommentsService
  11. {
  12. public static function addComment($param){
  13. return ChapterComments::addComments($param);
  14. }
  15. public static function getChapterComment($cid,$uid){
  16. $comment = ChapterComments::getChapterComment($cid,$uid);
  17. if($comment){
  18. return $comment->tags;
  19. }
  20. return $comment;
  21. }
  22. public static function getBookStats(){
  23. }
  24. }