Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 26bf82c

Browse files
committedJun 21, 2021
⚡ 优化验证
1 parent 1841759 commit 26bf82c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/Traits/HttpRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ public function throw()
117117
public function request(): Result
118118
{
119119
$client = $this->createHttpClient();
120+
if(!$this->api){
121+
throw new ALAPIException('api cannot be empty');
122+
}
123+
120124
$options = [];
121125
if ('get' == $this->method) {
122126
$options['query'] = $this->param;

0 commit comments

Comments
 (0)