topbit 3.1.5 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.cn.md +1 -1
- package/package.json +1 -1
- package/src/token/token.js +1 -1
package/README.cn.md
CHANGED
|
@@ -1411,7 +1411,7 @@ https_server.listen(2026)
|
|
|
1411
1411
|
|
|
1412
1412
|
## 请求限流
|
|
1413
1413
|
|
|
1414
|
-
框架层面提供的限流是基于IP地址的计算和过滤,避免同一个IP地址密集的发送请求。若使用HTTP/2
|
|
1414
|
+
框架层面提供的限流是基于IP地址的计算和过滤,避免同一个IP地址密集的发送请求。若使用HTTP/2协议,则需要配合使用扩展http2limit模块。
|
|
1415
1415
|
|
|
1416
1416
|
```javascript
|
|
1417
1417
|
'use strict';
|
package/package.json
CHANGED
package/src/token/token.js
CHANGED
|
@@ -426,7 +426,7 @@ class TopbitToken {
|
|
|
426
426
|
return c.status(self.failedCode).to(uinfo.errcode)
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
c.user = uinfo
|
|
429
|
+
c.user = uinfo.data
|
|
430
430
|
|
|
431
431
|
if (uinfo.data.expires + uinfo.data.timestamp - uinfo.now < self.refresh) {
|
|
432
432
|
let new_token = self.makeToken(uinfo.data, uinfo.data.__tokenId__)
|