Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | class Client extends BaseClient |
||
22 | { |
||
23 | /** |
||
24 | * 获取展示的公众号信息. |
||
25 | * |
||
26 | * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
27 | */ |
||
28 | 1 | public function get() |
|
29 | { |
||
30 | 1 | return $this->httpGet('wxa/getshowwxaitem'); |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * 设置展示的公众号. |
||
35 | * |
||
36 | * @param string $appid |
||
37 | * @param int $flag |
||
38 | * |
||
39 | * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
40 | */ |
||
41 | 1 | public function update(string $appid, int $flag) |
|
42 | { |
||
43 | 1 | return $this->httpPostJson('wxa/updateshowwxaitem', [ |
|
44 | 1 | 'appid' => $appid, |
|
45 | 1 | 'wxa_subscribe_biz_flag' => $flag, |
|
46 | ]); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * 获取可以用来设置的公众号列表. |
||
51 | * |
||
52 | * @param int $page |
||
53 | * @param int $num |
||
54 | * |
||
55 | * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
56 | */ |
||
57 | 1 | public function getAvailableList(int $page, int $num) |
|
62 | ]); |
||
63 | } |
||
64 | } |
||
65 |