Skip to content

Commit

Permalink
fix(plugin): ctcloud root_id(reruin#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
reruin committed Sep 3, 2021
1 parent 45b780d commit abea3ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sharelist-plugin/lib/driver.189cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Manager {
* @return {object} { credentials | error }
* @api private
*/
async refreshCookie({ account, password }) {
async refreshCookie({ account, password ,...rest}) {
const { request } = this.app
//0 准备工作: 获取必要数据
let defaultHeaders = {
Expand Down Expand Up @@ -206,6 +206,7 @@ class Manager {
password,
cookie: `COOKIE_LOGIN_USER=${cookie};`,
updated_at: Date.now(),
...rest
},
}
}
Expand Down Expand Up @@ -377,7 +378,7 @@ module.exports = class Driver {

if (expired_at) {
expired_at = +expired_at * 1000
app.cache.set(id, data, expired_at - Date.now() - 3000)
app.cache.set(cacheId, data, expired_at - Date.now() - 3000)
}

// console.log('data', data)
Expand Down

0 comments on commit abea3ca

Please sign in to comment.