refact: update oss config

This commit is contained in:
2025-12-10 22:23:05 +08:00
parent 4bd8cef372
commit 083142491f
4 changed files with 4 additions and 25 deletions

View File

@@ -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"
}