From d5c4ae3971fb946c6390b936cc0e4c1fed00f374 Mon Sep 17 00:00:00 2001 From: shylinux Date: Tue, 15 Nov 2022 23:14:10 +0800 Subject: [PATCH] opt some --- lib/misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/misc.js b/lib/misc.js index 34d9eafe..7599aef9 100644 --- a/lib/misc.js +++ b/lib/misc.js @@ -196,7 +196,7 @@ Volcanos("misc", {Message: function(event, can) { var msg = {} return search? location.search = search: location.href = location.pathname }, CookieSessid: function(can, value, path) { - return can.misc.Cookie(can, ice.MSG_SESSID+"_"+can.base.replaceAll(location.port, ice.PT, "_", ice.DF, "_"), value, path) + return can.misc.Cookie(can, ice.MSG_SESSID+"_"+(can.base.replaceAll(location.port, ice.PT, "_", ice.DF, "_")||(location.protocol == "https:"? "443": "80")), value, path) return can.misc.Cookie(can, ice.MSG_SESSID+"_"+can.base.replaceAll(location.host, ice.PT, "_", ice.DF, "_"), value, path) }, Cookie: function(can, key, value, path) {