Commit d93c9898 authored by 谢宇轩's avatar 谢宇轩 😅

Merge branch 'FeatDelUUID' into 'master'

fix: 修改几处不严格的变量类型

See merge request back-end/easy-http-sdk!5
parents 83a0791a 83b9ab8e
......@@ -165,7 +165,7 @@ class SdkRequest extends Request
*/
public function withRequestID(?string $uuid = null): self
{
$this->uuid = $uuid;
$this->uuid = $uuid ?? "";
$RequestIDMiddleware = new RequestIDMiddleware($this->uuid);
$this->middlewares[] = $RequestIDMiddleware;
return $this;
......
......@@ -122,8 +122,7 @@ abstract class Option
*/
public function getAuthExpires(): int
{
return static::AUTH_CACHE_EXPIRES_AT ?? 30000;
return empty(static::AUTH_CACHE_EXPIRES_AT) ? self::AUTH_CACHE_EXPIRES_AT : static::AUTH_CACHE_EXPIRES_AT;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment