refact: update oss config
This commit is contained in:
@@ -528,13 +528,4 @@ func (s *RecognitionService) processOneTask(ctx context.Context) {
|
||||
|
||||
func (s *RecognitionService) getURL(ctx context.Context) string {
|
||||
return "http://cloud.srcstar.com:8045/formula/predict"
|
||||
count, err := cache.IncrURLCount(ctx)
|
||||
if err != nil {
|
||||
log.Error(ctx, "func", "getURL", "msg", "获取URL计数失败", "error", err)
|
||||
return "http://cloud.srcstar.com:8026/formula/predict"
|
||||
}
|
||||
if count%2 == 0 {
|
||||
return "http://cloud.srcstar.com:8026/formula/predict"
|
||||
}
|
||||
return "https://cloud.texpixel.com:1080/formula/predict"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user