Browse Source

调整参数

tags/v1.0.6^0
wuliangbo 1 year ago
parent
commit
1c6c0aa3cf
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/Kernel/AccessToken.php

+ 3
- 1
src/Kernel/AccessToken.php View File

@@ -182,7 +182,9 @@ abstract class AccessToken implements AccessTokenInterface
*/
public function applyToOptions(array $requestOptions = []): array
{
$requestOptions['json'] = array_merge($this->getQuery(), $requestOptions['json']);
if(isset($requestOptions['json'])){
$requestOptions['json'] = array_merge($this->getQuery(), $requestOptions['json']);
}
return $requestOptions;
}



Loading…
Cancel
Save