Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
b5e354b6
Commit
b5e354b6
authored
Nov 15, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改service
parent
565c8b51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app.service.ts
src/app/app.service.ts
+4
-4
No files found.
src/app/app.service.ts
View file @
b5e354b6
...
...
@@ -89,7 +89,7 @@ export class HttpService {
}
guacamole_add_asset
(
user_id
:
string
,
asset_id
:
string
,
system_user_id
:
string
)
{
cons
t
params
=
new
HttpParams
()
le
t
params
=
new
HttpParams
()
.
set
(
'user_id'
,
user_id
)
.
set
(
'asset_id'
,
asset_id
)
.
set
(
'system_user_id'
,
system_user_id
)
...
...
@@ -98,7 +98,7 @@ export class HttpService {
if
(
solution
!==
'Auto'
)
{
const
width
=
solution
.
split
(
'x'
)[
0
];
const
height
=
solution
.
split
(
'x'
)[
1
];
params
.
set
(
'width'
,
width
).
set
(
'height'
,
height
);
params
=
params
.
set
(
'width'
,
width
).
set
(
'height'
,
height
);
}
return
this
.
http
.
get
(
...
...
@@ -111,14 +111,14 @@ export class HttpService {
}
guacamole_token_add_asset
(
assetToken
:
string
,
token
:
string
)
{
cons
t
params
=
new
HttpParams
()
le
t
params
=
new
HttpParams
()
.
set
(
'asset_token'
,
assetToken
)
.
set
(
'token'
,
token
);
const
solution
=
localStorage
.
getItem
(
'rdpSolution'
)
||
'Auto'
;
if
(
solution
!==
'Auto'
)
{
const
width
=
solution
.
split
(
'x'
)[
0
];
const
height
=
solution
.
split
(
'x'
)[
1
];
params
.
set
(
'width'
,
width
).
set
(
'height'
,
height
);
params
=
params
.
set
(
'width'
,
width
).
set
(
'height'
,
height
);
}
return
this
.
http
.
get
(
'/guacamole/api/ext/jumpserver/asset/token/add'
,
...
...
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