Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-components
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
scilla-components
Commits
ccb9cd2a
Commit
ccb9cd2a
authored
Apr 12, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
引擎启动参数改为engineConfig和customConfig
parent
524b14e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
182 additions
and
191 deletions
+182
-191
webService.ts
src/net/webService.ts
+182
-191
No files found.
src/net/webService.ts
View file @
ccb9cd2a
...
...
@@ -3,10 +3,7 @@
* 网络组件
*/
import
{
utils
}
from
"scilla"
;
// 请求路径 root
let
baseUrl
:
string
;
import
{
utils
,
customConfig
}
from
"scilla"
;
/**
* 调用接口
...
...
@@ -27,6 +24,8 @@ export function callApi(uri: string, params: any = null, method: string = 'post'
method
,
};
let
baseUrl
=
customConfig
.
webServiceUrl
;
if
(
!
baseUrl
)
{
options
.
credentials
=
'include'
;
}
...
...
@@ -181,11 +180,3 @@ export async function getToken(uri: string, params: any, method: string = 'POST'
export
function
createSgin
(
ticketId
:
number
,
score
:
number
,
gameData
:
any
,
submitToken
:
string
):
string
{
return
window
[
'duiba_md5'
](
ticketId
+
''
+
score
+
''
+
gameData
+
''
+
submitToken
);
}
/**
* @desc 请求root补全
* @param {string} u
*/
export
function
enjectBaseUrl
(
u
)
{
baseUrl
=
u
;
}
\ No newline at end of file
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