Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 422b3273
authored
2026-07-15 17:34:16 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
跳转打卡详情页
1 parent
72b713ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
lib/services/notification_service.dart
lib/services/notification_service.dart
View file @
422b327
...
@@ -76,6 +76,7 @@ class NotificationService {
...
@@ -76,6 +76,7 @@ class NotificationService {
try
{
try
{
final
data
=
jsonDecode
(
payload
)
as
Map
<
String
,
dynamic
>;
final
data
=
jsonDecode
(
payload
)
as
Map
<
String
,
dynamic
>;
final
func
=
data
[
'func'
]
as
String
?;
final
uniqueCode
=
data
[
'uniqueCode'
]
as
String
?;
final
uniqueCode
=
data
[
'uniqueCode'
]
as
String
?;
final
classCode
=
data
[
'classCode'
]
as
String
?;
final
classCode
=
data
[
'classCode'
]
as
String
?;
if
(
uniqueCode
==
null
||
uniqueCode
.
isEmpty
||
classCode
==
null
||
classCode
.
isEmpty
)
{
if
(
uniqueCode
==
null
||
uniqueCode
.
isEmpty
||
classCode
==
null
||
classCode
.
isEmpty
)
{
...
@@ -107,14 +108,23 @@ class NotificationService {
...
@@ -107,14 +108,23 @@ class NotificationService {
final
sessionCode
=
prefs
.
getString
(
'auth_sessionCode'
)
??
''
;
final
sessionCode
=
prefs
.
getString
(
'auth_sessionCode'
)
??
''
;
final
userCode
=
prefs
.
getString
(
'auth_userCode'
)
??
''
;
final
userCode
=
prefs
.
getString
(
'auth_userCode'
)
??
''
;
var
funcPage
=
''
;
if
(
func
==
'homework'
)
{
funcPage
=
'page=homeworkdetail&uniqueCode=
$uniqueCode
'
;
}
else
if
(
func
==
'clockin'
)
{
funcPage
=
'page=clockdetail&clockUnique=
$uniqueCode
'
;
}
else
{
debugPrint
(
'[notification_service] 不支持功能的类型:
$func
'
);
return
null
;
}
return
'/h5/login/pages/applogin?'
return
'/h5/login/pages/applogin?'
'sessionCode=
$sessionCode
&'
'sessionCode=
$sessionCode
&'
'userCode=
$userCode
&'
'userCode=
$userCode
&'
'classCode=
$classCode
&'
'classCode=
$classCode
&'
'userType=2&'
'userType=2&'
'stuId=
$stuId
&'
'stuId=
$stuId
&'
'page=homeworkdetail&'
'
$funcPage
'
;
'uniqueCode=
$uniqueCode
'
;
}
catch
(
e
,
stackTrace
)
{
}
catch
(
e
,
stackTrace
)
{
debugPrint
(
'[notification_service] 解析 payload 失败:
$e
\n
$stackTrace
'
);
debugPrint
(
'[notification_service] 解析 payload 失败:
$e
\n
$stackTrace
'
);
return
null
;
return
null
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment