mirror of
https://github.com/Giu-zhao/ios_rule_script
synced 2024-11-22 08:28:25 +08:00
适配新版万达电影获取Cookie接口 close #330
This commit is contained in:
parent
9151736820
commit
ff32e77858
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user