-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,12 +78,15 @@ protected function buildEndpoint(string $servername, string $command): string | |
/** | ||
* Generate Sign. | ||
* | ||
* @param string $identifier | ||
* @param int $expires | ||
* @return string | ||
* @throws \Exception | ||
*/ | ||
protected function generateSign(string $identifier, int $expires = 15552000): string | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hedeqiang
via email
Author
Owner
|
||
{ | ||
$api = new TLSSigAPIv2($this->config->get('sdk_app_id'), $this->config->get('secret_key')); | ||
|
||
return $api->genSig($identifier, $expires); | ||
return $api->genUserSig($identifier, $expires); | ||
} | ||
} |
这个方法可以
public
吧?提供全套一站式 API,不然还得单独调TLSSigAPIv2
来生成 UserSig