mm_session 1.5.7 → 1.5.8
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/lib/session.js +1 -2
- package/package.json +1 -1
package/lib/session.js
CHANGED
|
@@ -446,8 +446,7 @@ Session.prototype._verifyExpiration = async function (end_time) {
|
|
|
446
446
|
Session.prototype._checkSessionId = async function (session_id, client_ip, client_ua) {
|
|
447
447
|
try {
|
|
448
448
|
// 解码session_id
|
|
449
|
-
var data = this._helper.
|
|
450
|
-
this.config.encrypt_key, this._helper._getSecret(client_ua));
|
|
449
|
+
var data = this._helper.parseId(this.config.encrypt_key, session_id, client_ua);
|
|
451
450
|
if (!data) return false;
|
|
452
451
|
let { ip, end_time } = data;
|
|
453
452
|
// 验证IP
|