Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
9b1d4422
Commit
9b1d4422
authored
Dec 02, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#50969 add login parameter(app version)
parent
971a5a7d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
+16
-6
abweb/common/js/common.js
+9
-0
abweb/common/js/constant.js
+2
-4
abweb/common/json/sys/conf.json
+1
-1
abweb/js/login/login.js
+3
-0
env.sh
+1
-1
No files found.
abweb/common/js/common.js
View file @
9b1d4422
...
...
@@ -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
)
{
...
...
abweb/common/js/constant.js
View file @
9b1d4422
...
...
@@ -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
...
...
abweb/common/json/sys/conf.json
View file @
9b1d4422
...
...
@@ -18,7 +18,7 @@
"anonymousLoginPath"
:
"test"
,
"anonymousLoginId"
:
"nologin"
,
"appName"
:
"ABookWebCL"
,
"appVersion"
:
"
0.0.1
"
,
"appVersion"
:
"
1.0.0
"
,
"optMusicMode"
:
1
,
"previewFlg"
:
false
}
abweb/js/login/login.js
View file @
9b1d4422
...
...
@@ -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
);
}
...
...
env.sh
View file @
9b1d4422
...
...
@@ -37,7 +37,7 @@ modify_api()
"anonymousLoginPath" : "test",
"anonymousLoginId" : "nologin",
"appName" : "ABookWebCL",
"appVersion" : "
0.0.1
",
"appVersion" : "
1.0.0
",
"optMusicMode" : 1,
"previewFlg" : false
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment