...
|
...
|
@@ -3,7 +3,7 @@ |
|
|
const _ = require('lodash');
|
|
|
const cookie = global.yoho.cookie;
|
|
|
const authcode = require('../../utils/authcode');
|
|
|
const packageData = require('../../package.json');
|
|
|
const config = global.yoho.config;
|
|
|
|
|
|
module.exports = () => {
|
|
|
return (req, res, next) => {
|
...
|
...
|
@@ -49,7 +49,7 @@ module.exports = () => { |
|
|
return _.parseInt(req.cookies.app_uid);
|
|
|
},
|
|
|
sessionKey: req.cookies.app_session_key,
|
|
|
appVersion: req.query.app_version || req.cookies.app_version || packageData.version,
|
|
|
appVersion: req.query.app_version || req.cookies.app_version || config.appVersion,
|
|
|
appSessionType: req.cookies.app_client_type
|
|
|
};
|
|
|
}
|
...
|
...
|
@@ -63,7 +63,7 @@ module.exports = () => { |
|
|
))
|
|
|
) {
|
|
|
let appUid = req.query.uid || req.cookies.app_uid;
|
|
|
let appVersion = req.query.app_version || req.cookies.app_version || packageData.version;
|
|
|
let appVersion = req.query.app_version || req.cookies.app_version || config.appVersion;
|
|
|
let appSessionType = req.query.client_type || req.cookies.app_client_type;
|
|
|
|
|
|
req.query.uid = {
|
...
|
...
|
|