fix
This commit is contained in:
parent
6430c18d2a
commit
735098b2c7
|
@ -36,7 +36,7 @@ func (l *TestAiLogic) TestAi(req *types.TestAiReq, userinfo *auth.UserInfo, w ht
|
|||
if lenAiHost == 0 {
|
||||
return resp.SetStatusWithMessage(basic.CodeServiceErr, "ai host list is 0")
|
||||
}
|
||||
hostIndex := rand.Intn(lenAiHost) - 1
|
||||
hostIndex := rand.Intn(lenAiHost)
|
||||
var resultBLM constants.BLMServiceUrlResult
|
||||
logx.Info("正在请求:" + l.svcCtx.Config.BLMService.Urls[hostIndex])
|
||||
err := curl.NewClient(l.ctx, &curl.Config{
|
||||
|
|
Loading…
Reference in New Issue
Block a user