Authored by 郭成尧

sessionKey-get

@@ -69,6 +69,7 @@ module.exports = () => { @@ -69,6 +69,7 @@ module.exports = () => {
69 let appUid = req.query.uid || req.cookies.app_uid; 69 let appUid = req.query.uid || req.cookies.app_uid;
70 let appVersion = req.cookies.app_version || req.query.app_version || config.appVersion; 70 let appVersion = req.cookies.app_version || req.query.app_version || config.appVersion;
71 let appSessionType = req.query.client_type || req.cookies.app_client_type; 71 let appSessionType = req.query.client_type || req.cookies.app_client_type;
  72 + let sessionKey = req.query.session_key || req.cookies.app_session_key;
72 73
73 if (req.query.app_version && req.query.client_type) { 74 if (req.query.app_version && req.query.client_type) {
74 logger.warn(`app session from querystring, url:${req.originalUrl}`); 75 logger.warn(`app session from querystring, url:${req.originalUrl}`);
@@ -79,6 +80,7 @@ module.exports = () => { @@ -79,6 +80,7 @@ module.exports = () => {
79 return _.parseInt(appUid); 80 return _.parseInt(appUid);
80 }, 81 },
81 appVersion: appVersion, 82 appVersion: appVersion,
  83 + sessionKey: sessionKey,
82 appSessionType: appSessionType 84 appSessionType: appSessionType
83 }; 85 };
84 86