| 1628 | } |
| 1629 | |
| 1630 | function 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 | |
| 1646 | function checkFormat(value) { //check format and delete duplicates |
| 1647 | let n, k, c = {}; |