Commit 151a0aec by Takumi Imai

Merge branch 'feature/1.0_check_web_dev_kdh_2' into 'feature/1.0_check_web_dev'

#50969 add login parameter(app version)

See merge request !114
parents 09e8d8c2 d7d55f22
......@@ -440,6 +440,15 @@ var ClientData = {
}
},
// application version
conf_appVersion: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(CONSTANT.KEYS.conf_appVersion, data);
} else {
return SessionStorageUtils.get(CONSTANT.KEYS.conf_appVersion);
}
},
// api resorce dl url
conf_apiResourceDlUrl: function (data) {
if (arguments.length > 0) {
......
......@@ -168,14 +168,12 @@ CONSTANT.KEYS = {
userInfo_sid_bak: 'sid_bak',
// Session: Notification Information (pushInfo)_Number of new arrivals: Interger
pushInfo_newMsgNumber: 'pushInfo_newMsgNumber',
// Web Application Version
conf_appVersion: 'conf_appVersion',
conf_apiUrl: 'conf_apiUrl',
conf_apiLoginUrl: 'conf_apiLoginUrl',
conf_checkApiUrl: 'conf_checkApiUrl',
conf_apiResourceDlUrl: 'conf_apiResourceDlUrl',
// Session :ABookCheck:Char (Y: Yes, N: No)
serviceOpt_abook_check: 'abook_check',
// Session :Chat Function:Char (Y: Yes, N: No)
serviceOpt_chat_function: 'chat_function',
// Session: Enterprise Option (serviceOpt)_Any push message: Char (Y: Yes, N: No)
serviceOpt_usable_push_message: 'usable_push_message',
// Local
......
......@@ -18,7 +18,7 @@
"anonymousLoginPath" : "test",
"anonymousLoginId" : "nologin",
"appName" : "ABookWebCL",
"appVersion" : "0.0.1",
"appVersion" : "1.0.0",
"optMusicMode" : 1,
"previewFlg" : false
}
......@@ -183,6 +183,7 @@ LOGIN.processLogin = function () {
password: password,
urlpath: accountPath,
language: language,
appVersion: ClientData.conf_appVersion(),
};
// Set sid for login, this will be checked authoring 2 sessions
......@@ -549,6 +550,7 @@ LOGIN.ready = function () {
ClientData.conf_apiLoginUrl(siteUrl + 'nuabvapi');
ClientData.conf_checkApiUrl(siteUrl + 'checkapi/web');
ClientData.conf_apiResourceDlUrl(siteUrl + '{0}/dl');
ClientData.conf_appVersion("1.0.0");
// set account setting value
ClientData.userInfo_accountPath(urlPath);
ClientData.userInfo_accountPath_session(urlPath);
......@@ -559,6 +561,7 @@ LOGIN.ready = function () {
// conf parameter set
ClientData.conf_apiUrl(sysSettings.apiUrl);
ClientData.conf_checkApiUrl(sysSettings.checkApiUrl);
ClientData.conf_appVersion(sysSettings.appVersion);
ClientData.conf_apiLoginUrl(sysSettings.apiLoginUrl);
ClientData.conf_apiResourceDlUrl(sysSettings.apiResourceDlUrl);
}
......
......@@ -37,7 +37,7 @@ modify_api()
"anonymousLoginPath" : "test",
"anonymousLoginId" : "nologin",
"appName" : "ABookWebCL",
"appVersion" : "0.0.1",
"appVersion" : "1.0.0",
"optMusicMode" : 1,
"previewFlg" : false
}
......
......@@ -21,7 +21,7 @@ modify_api()
"anonymousLoginPath" : "test",
"anonymousLoginId" : "nologin",
"appName" : "ABookWebCL",
"appVersion" : "0.0.1",
"appVersion" : "1.0.0",
"optMusicMode" : 1,
"previewFlg" : true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment