Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jdaw
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Jdaw
Commits
3132dc16
Commit
3132dc16
authored
Jan 16, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9cf290b6
Pipeline
#19597
passed with stages
in 4 minutes and 34 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/mycard-account/mycard-account.service.ts
src/mycard-account/mycard-account.service.ts
+0
-2
No files found.
src/mycard-account/mycard-account.service.ts
View file @
3132dc16
...
@@ -71,7 +71,6 @@ export class MycardAccountService extends CrudService(User) {
...
@@ -71,7 +71,6 @@ export class MycardAccountService extends CrudService(User) {
@
UseCommand
(
'
bind
'
,
'
绑定 MyCard 帐号
'
)
@
UseCommand
(
'
bind
'
,
'
绑定 MyCard 帐号
'
)
async
bind
(@
PutUserId
()
id
:
string
,
needHint
=
false
)
{
async
bind
(@
PutUserId
()
id
:
string
,
needHint
=
false
)
{
const
session
=
BindSession
.
create
(
id
);
const
session
=
BindSession
.
create
(
id
);
console
.
log
(
session
.
sessionId
);
await
this
.
aragami
.
set
(
session
);
await
this
.
aragami
.
set
(
session
);
const
url
=
loginUrl
(
const
url
=
loginUrl
(
`
${
this
.
rootUrl
}
/api/mycard-account/bind?session=
${
session
.
sessionId
}
`
,
`
${
this
.
rootUrl
}
/api/mycard-account/bind?session=
${
session
.
sessionId
}
`
,
...
@@ -83,7 +82,6 @@ export class MycardAccountService extends CrudService(User) {
...
@@ -83,7 +82,6 @@ export class MycardAccountService extends CrudService(User) {
dto
:
BindQueryDto
,
dto
:
BindQueryDto
,
):
Promise
<
{
error
?:
string
;
user
?:
MycardUser
}
>
{
):
Promise
<
{
error
?:
string
;
user
?:
MycardUser
}
>
{
const
session
=
await
this
.
aragami
.
get
(
BindSession
,
dto
.
session
);
const
session
=
await
this
.
aragami
.
get
(
BindSession
,
dto
.
session
);
console
.
log
(
dto
.
session
,
session
);
if
(
!
session
)
{
if
(
!
session
)
{
return
{
error
:
'
会话不存在。
'
};
return
{
error
:
'
会话不存在。
'
};
}
}
...
...
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