Commit 5798ca19 by linjinhong

Merge remote-tracking branch 'origin/linjinhong' into dev

parents 009001ad 169299da
...@@ -3960,8 +3960,9 @@ const replenishmentSuccess = async () => { ...@@ -3960,8 +3960,9 @@ const replenishmentSuccess = async () => {
} }
function getPlatformImg(code: string) { function getPlatformImg(code: string) {
const item = platformJson.find( const lowerCode = code.toLowerCase()
(el) => el.name.toLowerCase() === code.toLowerCase(), const item = platformJson.find((el) =>
el.name.toLowerCase().includes(lowerCode),
) )
if (item) { if (item) {
return item.icon.split('/').pop() return item.icon.split('/').pop()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment