This commit is contained in:
suyl
2021-08-17 10:46:35 +08:00
parent 389d29366d
commit 8a60851d4d
8 changed files with 107 additions and 18 deletions

View File

@@ -44,6 +44,18 @@ func (a *API) Err2CallbackResponse(err error) *CallbackResponse {
return a.PackCallbackResult(err.Error())
}
func (a *API) SetCallbackToken(token string) {
a.locker.RLock()
defer a.locker.RUnlock()
a.callbackToken = token
}
func (a *API) SetCallbackAESKey(b []byte) {
a.locker.RLock()
defer a.locker.RUnlock()
a.callbackAESKey = b
}
func (a *API) GetCallbackToken() string {
a.locker.RLock()
defer a.locker.RUnlock()