Commit e07e1c17 by liang ce

token修正

parent 4606d604
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta http-equiv=Pragma content=no-cache><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>mingpay</title><link href=css/chunk-13ec64c5.52ec5803.css rel=prefetch><link href=css/chunk-28723f13.90e02cb9.css rel=prefetch><link href=css/chunk-3599003e.1a62b51d.css rel=prefetch><link href=css/chunk-3f3336d0.33fb771c.css rel=prefetch><link href=css/chunk-42323b98.64f24c7d.css rel=prefetch><link href=css/chunk-49a19ba8.67939e51.css rel=prefetch><link href=css/chunk-4ba7f26b.8079c706.css rel=prefetch><link href=css/chunk-5095efbe.58f409ad.css rel=prefetch><link href=css/chunk-56890f8c.b58ddb49.css rel=prefetch><link href=css/chunk-570f9528.289dca7b.css rel=prefetch><link href=css/chunk-58a22374.bf3cd3b1.css rel=prefetch><link href=css/chunk-6658342b.d8c3d9b5.css rel=prefetch><link href=css/chunk-6cec962d.698e1e67.css rel=prefetch><link href=css/chunk-7026f433.625e47b3.css rel=prefetch><link href=css/chunk-90b83a0c.23b21a79.css rel=prefetch><link href=css/chunk-a0a95438.3fbca111.css rel=prefetch><link href=css/chunk-d04df21a.6f8b801f.css rel=prefetch><link href=css/chunk-dd9fcb10.6109af67.css rel=prefetch><link href=css/chunk-edd53178.611b074a.css rel=prefetch><link href=css/chunk-edd5b888.7ba8d7af.css rel=prefetch><link href=css/chunk-fb6b8140.5661c4ec.css rel=prefetch><link href=js/chunk-13ec64c5.feb2838f.js rel=prefetch><link href=js/chunk-28723f13.a258c368.js rel=prefetch><link href=js/chunk-2d0bd16e.de89ee9c.js rel=prefetch><link href=js/chunk-3599003e.77d9b8d9.js rel=prefetch><link href=js/chunk-3f3336d0.f22a8e38.js rel=prefetch><link href=js/chunk-42323b98.ca0331ff.js rel=prefetch><link href=js/chunk-49a19ba8.c9a5f78f.js rel=prefetch><link href=js/chunk-4ba7f26b.1ce70aaf.js rel=prefetch><link href=js/chunk-5095efbe.ae3a92ac.js rel=prefetch><link href=js/chunk-56890f8c.5b0cfe4d.js rel=prefetch><link href=js/chunk-570f9528.101eb842.js rel=prefetch><link href=js/chunk-58a22374.ed08740f.js rel=prefetch><link href=js/chunk-6658342b.c9f90e1d.js rel=prefetch><link href=js/chunk-6cec962d.8347aa7f.js rel=prefetch><link href=js/chunk-7026f433.7fa23e7c.js rel=prefetch><link href=js/chunk-90b83a0c.e3338d42.js rel=prefetch><link href=js/chunk-a0a95438.2299ce8a.js rel=prefetch><link href=js/chunk-b788ccac.1c9e8d29.js rel=prefetch><link href=js/chunk-d04df21a.4097ae13.js rel=prefetch><link href=js/chunk-dd9fcb10.a5087450.js rel=prefetch><link href=js/chunk-edd53178.1e85550d.js rel=prefetch><link href=js/chunk-edd5b888.bf1fe3a3.js rel=prefetch><link href=js/chunk-fb6b8140.64b0f1cf.js rel=prefetch><link href=css/app.2887c0b5.css rel=preload as=style><link href=css/chunk-vendors.abc56c7c.css rel=preload as=style><link href=js/app.2d064d1f.js rel=preload as=script><link href=js/chunk-vendors.5f733cf2.js rel=preload as=script><link href=css/chunk-vendors.abc56c7c.css rel=stylesheet><link href=css/app.2887c0b5.css rel=stylesheet></head><body><noscript><strong>We're sorry but mingpay doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.5f733cf2.js></script><script src=js/app.2d064d1f.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta http-equiv=Pragma content=no-cache><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>mingpay</title><link href=css/chunk-13ec64c5.52ec5803.css rel=prefetch><link href=css/chunk-28723f13.90e02cb9.css rel=prefetch><link href=css/chunk-3599003e.1a62b51d.css rel=prefetch><link href=css/chunk-3f3336d0.33fb771c.css rel=prefetch><link href=css/chunk-42323b98.64f24c7d.css rel=prefetch><link href=css/chunk-49a19ba8.67939e51.css rel=prefetch><link href=css/chunk-4ba7f26b.8079c706.css rel=prefetch><link href=css/chunk-5095efbe.58f409ad.css rel=prefetch><link href=css/chunk-56890f8c.b58ddb49.css rel=prefetch><link href=css/chunk-570f9528.289dca7b.css rel=prefetch><link href=css/chunk-58a22374.bf3cd3b1.css rel=prefetch><link href=css/chunk-6658342b.d8c3d9b5.css rel=prefetch><link href=css/chunk-6cec962d.698e1e67.css rel=prefetch><link href=css/chunk-7026f433.625e47b3.css rel=prefetch><link href=css/chunk-90b83a0c.23b21a79.css rel=prefetch><link href=css/chunk-a0a95438.3fbca111.css rel=prefetch><link href=css/chunk-d04df21a.6f8b801f.css rel=prefetch><link href=css/chunk-dd9fcb10.6109af67.css rel=prefetch><link href=css/chunk-edd53178.611b074a.css rel=prefetch><link href=css/chunk-edd5b888.7ba8d7af.css rel=prefetch><link href=css/chunk-fb6b8140.5661c4ec.css rel=prefetch><link href=js/chunk-13ec64c5.feb2838f.js rel=prefetch><link href=js/chunk-28723f13.a258c368.js rel=prefetch><link href=js/chunk-2d0bd16e.de89ee9c.js rel=prefetch><link href=js/chunk-3599003e.77d9b8d9.js rel=prefetch><link href=js/chunk-3f3336d0.f22a8e38.js rel=prefetch><link href=js/chunk-42323b98.ca0331ff.js rel=prefetch><link href=js/chunk-49a19ba8.c9a5f78f.js rel=prefetch><link href=js/chunk-4ba7f26b.1ce70aaf.js rel=prefetch><link href=js/chunk-5095efbe.ae3a92ac.js rel=prefetch><link href=js/chunk-56890f8c.5b0cfe4d.js rel=prefetch><link href=js/chunk-570f9528.101eb842.js rel=prefetch><link href=js/chunk-58a22374.ed08740f.js rel=prefetch><link href=js/chunk-6658342b.c9f90e1d.js rel=prefetch><link href=js/chunk-6cec962d.8347aa7f.js rel=prefetch><link href=js/chunk-7026f433.7fa23e7c.js rel=prefetch><link href=js/chunk-90b83a0c.e3338d42.js rel=prefetch><link href=js/chunk-a0a95438.2299ce8a.js rel=prefetch><link href=js/chunk-b788ccac.1c9e8d29.js rel=prefetch><link href=js/chunk-d04df21a.4097ae13.js rel=prefetch><link href=js/chunk-dd9fcb10.a5087450.js rel=prefetch><link href=js/chunk-edd53178.1e85550d.js rel=prefetch><link href=js/chunk-edd5b888.bf1fe3a3.js rel=prefetch><link href=js/chunk-fb6b8140.64b0f1cf.js rel=prefetch><link href=css/app.2887c0b5.css rel=preload as=style><link href=css/chunk-vendors.abc56c7c.css rel=preload as=style><link href=js/app.c81e8a17.js rel=preload as=script><link href=js/chunk-vendors.5f733cf2.js rel=preload as=script><link href=css/chunk-vendors.abc56c7c.css rel=stylesheet><link href=css/app.2887c0b5.css rel=stylesheet></head><body><noscript><strong>We're sorry but mingpay doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.5f733cf2.js></script><script src=js/app.c81e8a17.js></script></body></html>
\ No newline at end of file
......@@ -118,9 +118,9 @@ function refreshToken () {
}
}).then((response) => {
localStorage.setItem(`access_token_${localStorage.getItem('orgId')}`, response.data.access_token)
localStorage.setItem(`refresh_token_localStorage.getItem('orgId')`, response.data.refresh_token)
localStorage.setItem(`expires_in_localStorage.getItem('orgId')`, response.data.expires_in * 1000)
localStorage.setItem(`start_time_localStorage.getItem('orgId')`, new Date().getTime())
localStorage.setItem(`refresh_token_${localStorage.getItem('orgId')}`, response.data.refresh_token)
localStorage.setItem(`expires_in_${localStorage.getItem('orgId')}`, response.data.expires_in * 1000)
localStorage.setItem(`start_time_${localStorage.getItem('orgId')}`, new Date().getTime())
resolve('ok')
}).catch((err) => {
console.log('refreshToken', err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment