ChapterEndRecommend.php 534 B

1234567891011121314151617181920212223
  1. <?php
  2. use app\main\constants\CacheConstants;
  3. /**
  4. * Created by PhpStorm.
  5. * User: Bear
  6. * Date: 2020/3/6
  7. * Time: 下午1:49
  8. */
  9. class ChapterEndRecommendTest extends TestInit
  10. {
  11. public function testInit()
  12. {
  13. $book_id = 11000000050;
  14. // $cacheKey = CacheConstants::getChapterEndRecommendIds($book_id);
  15. // \app\common\library\Redis::instance()->del($cacheKey);
  16. $return = \app\main\service\BookService::instance()->getChapterEndRecommendBook($book_id, 15)->data;
  17. var_dump($return);
  18. }
  19. }