Skip to content

Commit 879e719

Browse files
Merge pull request #64 from lienze741/1.2.x
增加了自定义ticket管理
2 parents 4ca61a7 + d75cedf commit 879e719

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/OfficialAccount/JsSdk/JsSdk.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ function jsTicket():JsTicketInterface
2323
}
2424
return $this->ticket;
2525
}
26+
27+
/**
28+
* 自定义Ticket实现
29+
*
30+
* @param JsTicketInterface $jsTicket
31+
*
32+
* @return JsSdk
33+
*/
34+
public function setTicketnManager(JsTicketInterface $jsTicket):JsSdk
35+
{
36+
$this->ticket = $jsTicket;
37+
return $this;
38+
}
39+
2640
/**
2741
* 获取前端注册wx.config使用的签名包
2842
* @param string $url

0 commit comments

Comments
 (0)