| @@ 155-164 (lines=10) @@ | ||
| 152 | * |
|
| 153 | * @return \EasyWeChat\Support\Collection |
|
| 154 | */ |
|
| 155 | public function pagination($lastSeen, $count) |
|
| 156 | { |
|
| 157 | $params = [ |
|
| 158 | 'type' => 2, |
|
| 159 | 'last_seen' => intval($lastSeen), |
|
| 160 | 'count' => intval($count), |
|
| 161 | ]; |
|
| 162 | ||
| 163 | return $this->fetch($params); |
|
| 164 | } |
|
| 165 | ||
| 166 | /** |
|
| 167 | * Fetch batch of devices by applyId. |
|
| @@ 175-185 (lines=11) @@ | ||
| 172 | * |
|
| 173 | * @return \EasyWeChat\Support\Collection |
|
| 174 | */ |
|
| 175 | public function fetchByApplyId($applyId, $lastSeen, $count) |
|
| 176 | { |
|
| 177 | $params = [ |
|
| 178 | 'type' => 3, |
|
| 179 | 'apply_id' => intval($applyId), |
|
| 180 | 'last_seen' => intval($lastSeen), |
|
| 181 | 'count' => intval($count), |
|
| 182 | ]; |
|
| 183 | ||
| 184 | return $this->fetch($params); |
|
| 185 | } |
|
| 186 | ||
| 187 | /** |
|
| 188 | * Fetch batch of devices. |
|