MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / findSourceChannel

Function findSourceChannel

web/src/pages/Setting/Ratio/UpstreamRatioSync.js:242–249  ·  view source on GitHub ↗
(model, ratioType, value)

Source from the content-addressed store, hash-verified

240 };
241
242 const findSourceChannel = (model, ratioType, value) => {
243 if (differences[model] && differences[model][ratioType]) {
244 const upMap = differences[model][ratioType].upstreams || {};
245 const entry = Object.entries(upMap).find(([_, v]) => v === value);
246 if (entry) return entry[0];
247 }
248 return t('未知');
249 };
250
251 Object.entries(resolutions).forEach(([model, ratios]) => {
252 const localCat = getLocalBillingCategory(model);

Callers 1

applySyncFunction · 0.85

Calls 1

tFunction · 0.70

Tested by

no test coverage detected