|
|
@@ -86,7 +86,6 @@ function parseJwt(token) {
|
|
|
const segments = token.split('.');
|
|
|
const base64HeaderUrl = segments[0];
|
|
|
const base64Header = base64HeaderUrl.replace(/-/g, '+').replace(/_/g, '/');
|
|
|
- lk.log(parseBase64(base64Header));
|
|
|
const headerData = JSON.parse(parseBase64(base64Header));
|
|
|
|
|
|
const base64PayloadUrl = segments[1];
|
|
|
@@ -170,10 +169,10 @@ function handleCookie(cookieStr){
|
|
|
"cust_id": "Pfd6kjTSmjCfQ8boswe1PpAmfgZW0acz",
|
|
|
"invitationCode": "BGCKWC"
|
|
|
}
|
|
|
- lk.log(`test=${playload.customerInfo}`)
|
|
|
- customerInfo = JSON.parse(playload.customerInfo);
|
|
|
+ customerInfo = JSON.parse(payload.customerInfo);
|
|
|
lk.setVal(OfPayConstKey.phone, customerInfo.phone);
|
|
|
} catch (e) {
|
|
|
+ lk.log(`handleCookie error:${e}`);
|
|
|
}
|
|
|
}else{
|
|
|
lk.log(`jwtData nil`)
|