Compare commits

..

No commits in common. "8f137abf30b6d658e02050a35dd5f19ec2b70efe" and "5706c238a443227c604f23ec7130cede396436b9" have entirely different histories.

View File

@ -26,6 +26,11 @@ import (
"fonchain-fiee/pkg/service/upload"
"fonchain-fiee/pkg/utils"
"fonchain-fiee/pkg/utils/stime"
"github.com/fonchain/utils/voice"
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
uuid "github.com/satori/go.uuid"
"go.uber.org/zap"
"io"
"log"
"path"
@ -34,12 +39,6 @@ import (
"strconv"
"strings"
"time"
"github.com/fonchain/utils/voice"
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
uuid "github.com/satori/go.uuid"
"go.uber.org/zap"
)
var ChatHandlerIns = ChatHandler{
@ -417,7 +416,7 @@ func (cr ChatHandler) Upload(c *gin.Context) {
if err != nil {
log.Print("md5查询附件失败", zap.Error(err))
}
if checkResp != nil && checkResp.Total > 0 {
if checkResp.Total > 0 {
service.Success(c, checkResp.List[0])
return
}