Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-micCenter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
hujiebin
hilo-micCenter
Commits
f7119a32
Commit
f7119a32
authored
Aug 23, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:去掉日志
parent
28de9962
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tencentyun.go
common/tencentyun/tencentyun.go
+1
-1
main.go
main.go
+1
-1
No files found.
common/tencentyun/tencentyun.go
View file @
f7119a32
...
...
@@ -57,7 +57,7 @@ func SendSystemMsg(logger *logrus.Entry, groupId string, members []string, conte
}
func
SendSystemMsgBy
(
logger
*
logrus
.
Entry
,
txGroupId
string
,
members
[]
string
,
content
string
,
reqUrl
string
,
getAdminSig
func
()
(
string
,
error
),
appId
int
)
error
{
logger
=
logger
.
WithField
(
"appId"
,
appId
)
.
WithField
(
"txGroupId"
,
txGroupId
)
logger
.
Infof
(
"SendSystemMsg content: %s"
,
content
)
//
logger.Infof("SendSystemMsg content: %s", content)
beginTime
:=
time
.
Now
()
type
BodyStruct
struct
{
...
...
main.go
View file @
f7119a32
...
...
@@ -122,7 +122,7 @@ func SendSignalMsg(groupId string, msg GroupSystemMsg) {
buffer
,
err
:=
json
.
Marshal
(
msg
)
if
err
==
nil
{
str
:=
string
(
buffer
)
mylogrus
.
MyLog
.
Infof
(
"cron micChangeSys SendSignalMsg: %s"
,
str
)
//
mylogrus.MyLog.Infof("cron micChangeSys SendSignalMsg: %s", str)
logger
:=
mylogrus
.
MyLog
.
WithField
(
"msgId"
,
msg
.
MsgId
)
if
err
=
tencentyun
.
SendSystemMsg
(
logger
,
groupId
,
[]
string
{},
str
);
err
!=
nil
{
...
...
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