Skip to content

Commit

Permalink
Update IM.php
Browse files Browse the repository at this point in the history
变更genUserSig($identifier, $expires); 方法名
  • Loading branch information
hedeqiang authored Apr 2, 2021
1 parent a0072e7 commit 4926f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IM.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function generateSign(string $identifier, int $expires = 15552000): st

if (!$cache->has($identifier.'_cache')) {
$api = new TLSSigAPIv2($this->config->get('sdk_app_id'), $this->config->get('secret_key'));
$sign = $api->genSig($identifier, $expires);
$sign = $api->genUserSig($identifier, $expires);
$cache->set($identifier.'_cache', $sign, $expires);

return $sign;
Expand Down

0 comments on commit 4926f3b

Please sign in to comment.