Skip to content

Commit

Permalink
fix: 修复 JsApiTicket Key冲突, (#2575) (#2578)
Browse files Browse the repository at this point in the history
* fix: 修复 JsApiTicket Key冲突, (#2575)

* Update JsApiTicket.php

Co-authored-by: 李丽君 <lilj@dreamz.cn>
Co-authored-by: 安正超 <anzhengchao@gmail.com>
  • Loading branch information
3 people committed Aug 24, 2022
1 parent f264ace commit 5109104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Work/JsApiTicket.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,6 @@ public function getAgentTicket(int $agentId): string

public function getAgentKey(int $agentId): string
{
return $this->key ?? $this->key = sprintf('work.jsapi_ticket.%s.%s', $this->corpId, $agentId);
return sprintf('%s.%s', $this->getKey(), $agentId);
}
}

1 comment on commit 5109104

@vercel
Copy link

@vercel vercel bot commented on 5109104 Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

easywechat – ./

easywechat-overtrue.vercel.app
easywechat.vercel.app
easywechat-git-6x-overtrue.vercel.app

Please sign in to comment.