MCPcopy Index your code
hub / github.com/NobyDa/Script / CookieMove

Function CookieMove

JD-DailyBonus/JD_DailyBonus.js:1630–1644  ·  view source on GitHub ↗
(oldCk1, oldCk2, oldKey1, oldKey2, newKey)

Source from the content-addressed store, hash-verified

1628}
1629
1630function CookieMove(oldCk1, oldCk2, oldKey1, oldKey2, newKey) {
1631 let update;
1632 const move = (ck, del) => {
1633 console.log(`京东${del}开始迁移!`);
1634 update = CookieUpdate(null, ck).total;
1635 update = $nobyda.write(JSON.stringify(update, null, 2), newKey);
1636 update = $nobyda.write("", del);
1637 }
1638 if (oldCk1) {
1639 const write = move(oldCk1, oldKey1);
1640 }
1641 if (oldCk2) {
1642 const write = move(oldCk2, oldKey2);
1643 }
1644}
1645
1646function checkFormat(value) { //check format and delete duplicates
1647 let n, k, c = {};

Callers 1

JD_DailyBonus.jsFile · 0.85

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected