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.
Files changed (2) hide show
  1. package/lib/session.js +1 -2
  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.aesDecode(session_id,
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_session",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "这是超级美眉session函数模块,用于web服务端session缓存",
5
5
  "main": "index.js",
6
6
  "scripts": {