Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
kefu_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
098c6fc3
authored
Jan 12, 2020
by
keith
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
remove message输出消息
parent
faec1e86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
controllers/message.go
controllers/message.go
View file @
098c6fc3
...
...
@@ -152,9 +152,9 @@ func (c *MessageController) Remove() {
_
,
err
:=
o
.
Raw
(
"UPDATE message SET `delete` = 1 WHERE from_account = ? AND to_account = ? AND `key` = ?"
,
removeRequestData
.
FromAccount
,
removeRequestData
.
ToAccount
,
removeRequestData
.
Key
)
.
Exec
()
if
err
!=
nil
{
utils
.
ResponseError
(
c
.
Ctx
,
"删除失败!"
,
&
err
)
c
.
Data
[
"json"
]
=
utils
.
ResponseError
(
c
.
Ctx
,
"删除失败!"
,
&
err
)
}
else
{
utils
.
ResponseSuccess
(
c
.
Ctx
,
"删除成功"
,
nil
)
c
.
Data
[
"json"
]
=
utils
.
ResponseSuccess
(
c
.
Ctx
,
"删除成功"
,
nil
)
}
c
.
ServeJSON
()
}
...
...
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