适配新版万达电影获取Cookie接口 close #330

This commit is contained in:
blackmatrix7 2021-05-12 09:41:33 +08:00
parent 9151736820
commit ff32e77858

View File

@ -1,5 +1,5 @@
const scriptName = '万达电影';
const getCookieRegex = /https?:\/\/user\-api\-prd\-mx\.wandafilm\.com\/user\/query_user_level\.api/;
const getCookieRegex = /https?:\/\/user\-api\-prd\-mx\.wandafilm\.com\/user\/query_user_level_tip\.api/;
const getactivityCodeRegex = /https?:\/\/cms\-activity\-api\-prd\-mx\.wandafilm\.com\/activity\/activity_count\.api\?activityCode=(\d*)/;
const cookieKey = 'wanda_checkin_cookie';
const activityCodeKey = 'wanda_activitycode';
@ -200,7 +200,7 @@ function lottery(cookie, ts, checkVal, activityCode) {
hisCookie = !!hisCookie ? hisCookie : {};
if (cookie['_mi_'] != hisCookie['_mi_']){
magicJS.write(cookieKey, cookie);
magicJS.logInfo(`旧的Cookie${hisCookie}\n新的Cookie${cookie}\nCookie不同写入新的Cookie成功`);
magicJS.logInfo(`旧的Cookie${JSON.stringify(hisCookie)}\n新的Cookie${JSON.stringify(cookie)}\nCookie不同写入新的Cookie成功`);
magicJS.notify('Cookie写入成功');
}
else{