Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/OfficialAccount/JsSdk/JsSdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down