Skip to content

Commit

Permalink
修复无法获取响应的成功消息问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tangllty committed Jan 19, 2024
1 parent 632effe commit 4ea51d0
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -42,13 +42,11 @@ class ControllerAspect {
var response: Any? = null
message = try {
response = proceedingJoinPoint.proceed()
if (response is AjaxResult) {
response["msg"]
when (response) {
is AjaxResult -> response["msg"].toString()
is TableDataResult -> response.msg.toString()
else -> "成功"
}
if (response is TableDataResult) {
response.msg
}
"成功"
} catch (e: Exception) {
LogUtils.error("请求失败", e)
throwable = e

0 comments on commit 4ea51d0

Please sign in to comment.