Sfoglia il codice sorgente

修复bug: RiskControl相关redis key

dodo hold 11 mesi fa
parent
commit
5b2b621632

File diff suppressed because it is too large
+ 0 - 0
molilian.api/Properties/PublishProfiles/latest.pubxml.user


+ 2 - 2
molilian.core/Core/taoke/RiskControlCore.cs

@@ -151,7 +151,7 @@ namespace molilian.core
                 string key = $"{channel}:{accountId}:{flag}";
                 if (_calls.ContainsKey(key)) return _calls[key];
 
-                string cache_key = $"RiskControl:calls:{key}";
+                string cache_key = $":RiskControl:calls:{key}";
                 int num = RedisHelper.Get<int>(cache_key);
                 _calls.TryAdd(key, num);
                 return num;
@@ -167,7 +167,7 @@ namespace molilian.core
                 if (!_incomeAmt.TryAdd(key, income_amt))
                     _incomeAmt[key] = income_amt;
             }
-            string cache_key = $"RiskControl:{key}:income_amt";
+            string cache_key = $":RiskControl:{key}:income_amt";
             try
             {
                 var tasks = EndPointCore.List()

Some files were not shown because too many files changed in this diff