fix:更新测试环境
This commit is contained in:
parent
0edcf1e65f
commit
94e15c1c19
|
@ -16,5 +16,5 @@ AWS:
|
||||||
Token:
|
Token:
|
||||||
BLMService:
|
BLMService:
|
||||||
LogoCombine:
|
LogoCombine:
|
||||||
#Url: "http://192.168.1.7:45678/LogoCombine"
|
Url: "http://192.168.1.7:8999/LogoCombine"
|
||||||
Url: "http://18.119.109.254:8999/LogoCombine"
|
#Url: "http://18.119.109.254:8999/LogoCombine"
|
|
@ -2,6 +2,7 @@ package logic
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"errors"
|
||||||
"fusenapi/model/gmodel"
|
"fusenapi/model/gmodel"
|
||||||
"fusenapi/utils/auth"
|
"fusenapi/utils/auth"
|
||||||
"fusenapi/utils/basic"
|
"fusenapi/utils/basic"
|
||||||
|
@ -17,6 +18,7 @@ import (
|
||||||
"fusenapi/server/resource/internal/types"
|
"fusenapi/server/resource/internal/types"
|
||||||
|
|
||||||
"github.com/zeromicro/go-zero/core/logx"
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LogoCombineLogic struct {
|
type LogoCombineLogic struct {
|
||||||
|
@ -75,8 +77,10 @@ func (l *LogoCombineLogic) LogoCombine(req *types.LogoCombineReq, userinfo *auth
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error(err)
|
if !errors.Is(err, gorm.ErrRecordNotFound) {
|
||||||
return resp.SetStatus(basic.CodeDbSqlErr, "LogoCombine error")
|
logx.Error(err)
|
||||||
|
return resp.SetStatus(basic.CodeDbSqlErr, "LogoCombine error")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,8 +138,9 @@ func (l *LogoCombineLogic) LogoCombine(req *types.LogoCombineReq, userinfo *auth
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return resp.SetStatus(basic.CodeFileLogoCombineErr, "service read fail")
|
return resp.SetStatus(basic.CodeFileLogoCombineErr, "service read fail")
|
||||||
}
|
}
|
||||||
|
ress := string(b)
|
||||||
|
|
||||||
if string(b) == "Internal Server Error" {
|
if ress == "Internal Server Error" {
|
||||||
return resp.SetStatus(basic.CodeFileLogoCombineErr, "service read fail")
|
return resp.SetStatus(basic.CodeFileLogoCombineErr, "service read fail")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user