| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function getDiscoverApi($type, $count = 20, $offset = 0, $needItemList = true, $useRecommend = false) |
||
| 47 | { |
||
| 48 | /* add settings */ |
||
| 49 | $this->ModelSettings(); |
||
| 50 | |||
| 51 | $body = [ |
||
| 52 | 'offset' => $offset, |
||
| 53 | 'count' => $count, |
||
| 54 | 'needItemList' => $needItemList, |
||
| 55 | 'useRecommend' => $useRecommend, |
||
| 56 | 'keyWord' => '', |
||
| 57 | 'discoverType' => 0, |
||
| 58 | ]; |
||
| 59 | |||
| 60 | $body = array_merge($body, config('tiktok.primary_body_api')); |
||
| 61 | |||
| 62 | $response = $this->getResponse($this->url_api.$type, $body); |
||
| 63 | |||
| 64 | return $response; |
||
| 65 | } |
||
| 67 |