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