|
@@ -82,12 +82,12 @@ function checkHandleRequest() {
|
|
|
let DeviceId = $request.headers['DeviceId'] || $request.headers['Deviceid'] || $request.headers['deviceid'];
|
|
let DeviceId = $request.headers['DeviceId'] || $request.headers['Deviceid'] || $request.headers['deviceid'];
|
|
|
let MBCUserAgent = $request.headers['MBC-User-Agent'] || $request.headers['Mbc-user-agent'] || $request.headers['mbc-user-agent'];
|
|
let MBCUserAgent = $request.headers['MBC-User-Agent'] || $request.headers['Mbc-user-agent'] || $request.headers['mbc-user-agent'];
|
|
|
if(DeviceId && MBCUserAgent && body){
|
|
if(DeviceId && MBCUserAgent && body){
|
|
|
- autoLoginInfo = {
|
|
|
|
|
|
|
+ let autoLoginInfo = {
|
|
|
"DeviceId": DeviceId,
|
|
"DeviceId": DeviceId,
|
|
|
"MBCUserAgent": MBCUserAgent,
|
|
"MBCUserAgent": MBCUserAgent,
|
|
|
"Body": body,
|
|
"Body": body,
|
|
|
}
|
|
}
|
|
|
- lk.setVal(jhshStoreKeyPrefix+'LoginInfo', autoLoginInfo);
|
|
|
|
|
|
|
+ lk.setVal(jhshStoreKeyPrefix+'LoginInfo', JSON.stringify(autoLoginInfo));
|
|
|
lk.log(' 建行生活登录数据写入成功');
|
|
lk.log(' 建行生活登录数据写入成功');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -95,7 +95,7 @@ function checkHandleRequest() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async function all() {
|
|
async function all() {
|
|
|
- await getLatestVersion(); // 获取版本信息
|
|
|
|
|
|
|
+ // await getLatestVersion(); // 获取版本信息
|
|
|
const signActInfoStr = lk.getVal(jhshStoreKeyPrefix+'SignActInfo');
|
|
const signActInfoStr = lk.getVal(jhshStoreKeyPrefix+'SignActInfo');
|
|
|
const signActInfoArr = signActInfoStr ? signActInfoStr.split('|') : [];
|
|
const signActInfoArr = signActInfoStr ? signActInfoStr.split('|') : [];
|
|
|
const loginInfoStr = lk.getVal(jhshStoreKeyPrefix+'LoginInfo');
|
|
const loginInfoStr = lk.getVal(jhshStoreKeyPrefix+'LoginInfo');
|
|
@@ -289,7 +289,6 @@ async function getLatestVersion() {
|
|
|
return new Promise(resolve => {
|
|
return new Promise(resolve => {
|
|
|
lk.get(options, async (err, resp, data) => {
|
|
lk.get(options, async (err, resp, data) => {
|
|
|
try {
|
|
try {
|
|
|
- lk.log(data);
|
|
|
|
|
err && lk.log(err);
|
|
err && lk.log(err);
|
|
|
if (data) {
|
|
if (data) {
|
|
|
try {
|
|
try {
|