fix:算法请求调整
This commit is contained in:
parent
3105c29071
commit
2dc5a2435f
|
@ -175,7 +175,7 @@ type (
|
||||||
func (l *defaultImageHandle) LogoInfoSet(ctx context.Context, in *LogoInfoSetReq) (*LogoInfoSetRes, error) {
|
func (l *defaultImageHandle) LogoInfoSet(ctx context.Context, in *LogoInfoSetReq) (*LogoInfoSetRes, error) {
|
||||||
fmt.Println("算法请求轮训下标:", globalBLMServiceIndex)
|
fmt.Println("算法请求轮训下标:", globalBLMServiceIndex)
|
||||||
var bLMServicePort = l.BLMServicePorts[globalBLMServiceIndex]
|
var bLMServicePort = l.BLMServicePorts[globalBLMServiceIndex]
|
||||||
if len(l.BLMServicePorts) == globalBLMServiceIndex {
|
if len(l.BLMServicePorts) == (globalBLMServiceIndex + 1) {
|
||||||
globalBLMServiceIndex = 0
|
globalBLMServiceIndex = 0
|
||||||
} else {
|
} else {
|
||||||
globalBLMServiceIndex = globalBLMServiceIndex + 1
|
globalBLMServiceIndex = globalBLMServiceIndex + 1
|
||||||
|
@ -241,7 +241,7 @@ type TemplateTagColor struct {
|
||||||
func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq) (*LogoCombineRes, error) {
|
func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq) (*LogoCombineRes, error) {
|
||||||
fmt.Println("算法请求轮训下标:", globalBLMServiceIndex)
|
fmt.Println("算法请求轮训下标:", globalBLMServiceIndex)
|
||||||
var bLMServicePort = l.BLMServicePorts[globalBLMServiceIndex]
|
var bLMServicePort = l.BLMServicePorts[globalBLMServiceIndex]
|
||||||
if len(l.BLMServicePorts) == globalBLMServiceIndex {
|
if len(l.BLMServicePorts) == (globalBLMServiceIndex + 1) {
|
||||||
globalBLMServiceIndex = 0
|
globalBLMServiceIndex = 0
|
||||||
} else {
|
} else {
|
||||||
globalBLMServiceIndex = globalBLMServiceIndex + 1
|
globalBLMServiceIndex = globalBLMServiceIndex + 1
|
||||||
|
@ -432,7 +432,7 @@ type (
|
||||||
func (l *defaultImageHandle) LogoStandard(ctx context.Context, in *LogoStandardReq) (*LogoStandardRes, error) {
|
func (l *defaultImageHandle) LogoStandard(ctx context.Context, in *LogoStandardReq) (*LogoStandardRes, error) {
|
||||||
fmt.Println("算法请求轮训下标:", globalBLMServiceIndex)
|
fmt.Println("算法请求轮训下标:", globalBLMServiceIndex)
|
||||||
var bLMServicePort = l.BLMServicePorts[globalBLMServiceIndex]
|
var bLMServicePort = l.BLMServicePorts[globalBLMServiceIndex]
|
||||||
if len(l.BLMServicePorts) == globalBLMServiceIndex {
|
if len(l.BLMServicePorts) == (globalBLMServiceIndex + 1) {
|
||||||
globalBLMServiceIndex = 0
|
globalBLMServiceIndex = 0
|
||||||
} else {
|
} else {
|
||||||
globalBLMServiceIndex = globalBLMServiceIndex + 1
|
globalBLMServiceIndex = globalBLMServiceIndex + 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user