fix: bug fixed

This commit is contained in:
engigu
2024-01-08 23:35:10 +08:00
parent 0726e6d26f
commit 7834de85c8
7 changed files with 32 additions and 25 deletions
+6 -3
View File
@@ -212,11 +212,14 @@ func TestSendWay(c *gin.Context) {
return
}
errTestMsg := sendWayService.TestSendWay(msgObj)
errTestMsg, resText := sendWayService.TestSendWay(msgObj)
if errTestMsg != "" {
appG.CResponse(http.StatusInternalServerError, errTestMsg, nil)
return
}
appG.CResponse(http.StatusOK, "测试渠道信息成功", nil)
msg := "测试渠道信息成功"
if resText != "" {
msg += ", 返回信息:" + resText
}
appG.CResponse(http.StatusOK, msg, nil)
}