Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wsmonitor_sql
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宋鹏博
wsmonitor_sql
Commits
759d7fef
Commit
759d7fef
authored
Aug 25, 2025
by
宋鹏博
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改返回的内容,消息ID更换为content
parent
2bc127aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cutils.py
common/cutils.py
+2
-2
No files found.
common/cutils.py
View file @
759d7fef
...
...
@@ -37,7 +37,7 @@ def mk_error_message(error_editor, error_answer, message_id, url=wechaturl):
data
=
{
"msgtype"
:
"markdown"
,
"markdown"
:
{
"content"
:
f
"ws推送<font color=
\"
warning
\"
>异常</font>,请相关同事注意。
\n
>问题编辑:<font color=
\"
comment
\"
>{error_editor}</font>
\n
>消息id
:<font color=
\"
comment
\"
>{message_id}</font>
\n
>返回消息:<font color=
\"
comment
\"
>{error_answer}</font> "
"content"
:
f
"ws推送<font color=
\"
warning
\"
>异常</font>,请相关同事注意。
\n
>问题编辑:<font color=
\"
comment
\"
>{error_editor}</font>
\n
content
:<font color=
\"
comment
\"
>{message_id}</font>
\n
>返回消息:<font color=
\"
comment
\"
>{error_answer}</font> "
}
}
requests
.
post
(
url
,
json
=
data
)
...
...
@@ -55,7 +55,7 @@ def ws_error(minute, error_answer_list=error_answer):
editor
=
DButils
()
.
select_sql
(
f
"select name from aicaptain.job where id= (SELECT job_id FROM aicaptain.employee WHERE "
f
" id= {data[i][0]} ); "
)
mk_error_message
(
editor
[
0
][
0
],
n
,
data
[
i
][
2
])
mk_error_message
(
editor
[
0
][
0
],
n
,
data
[
i
][
1
])
print
(
"结束"
)
...
...
宋鹏博
@songpengbo
commented
Aug 25, 2025
Master
11
11
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