diff --git a/src/OfficialAccount/JsSdk/JsSdk.php b/src/OfficialAccount/JsSdk/JsSdk.php index c0b306b..2852e00 100644 --- a/src/OfficialAccount/JsSdk/JsSdk.php +++ b/src/OfficialAccount/JsSdk/JsSdk.php @@ -23,6 +23,20 @@ function jsTicket():JsTicketInterface } return $this->ticket; } + + /** + * 自定义Ticket实现 + * + * @param JsTicketInterface $jsTicket + * + * @return JsSdk + */ + public function setTicketnManager(JsTicketInterface $jsTicket):JsSdk + { + $this->ticket = $jsTicket; + return $this; + } + /** * 获取前端注册wx.config使用的签名包 * @param string $url