Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
appzxhy
Commits
5a7b18dd
Commit
5a7b18dd
authored
Jul 01, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[修改]pangle上报
parent
80dea11a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
PangleEvent.kt
...main/java/com/base/appzxhy/business/pangle/PangleEvent.kt
+17
-1
No files found.
app/src/main/java/com/base/appzxhy/business/pangle/PangleEvent.kt
View file @
5a7b18dd
...
...
@@ -91,8 +91,24 @@ object PangleEvent {
Adjust
.
trackAdRevenue
(
adjustAdRevenue
)
//fb
// 1. 安全获取货币代码
val
currencyCode
=
when
{
// 优先使用ISO 4217代码(如USD/CNY)
showEcpm
.
currency
.
length
==
3
->
showEcpm
.
currency
.
uppercase
()
// 处理货币符号(如$→USD, ¥→CNY)
showEcpm
.
currency
==
"$"
->
"USD"
showEcpm
.
currency
==
"¥"
||
showEcpm
.
currency
==
"¥"
->
"CNY"
showEcpm
.
currency
==
"€"
->
"EUR"
showEcpm
.
currency
==
"£"
->
"GBP"
// 默认回退方案
else
->
{
"USD"
}
}
val
fbLogger
=
AppEventsLogger
.
newLogger
(
MyApplication
.
Companion
.
appContext
)
fbLogger
.
logPurchase
(
BigDecimal
.
valueOf
(
showEcpm
.
cpm
.
toDouble
()
/
100000
),
Currency
.
getInstance
(
showEcpm
.
currency
))
fbLogger
.
logPurchase
(
BigDecimal
.
valueOf
(
showEcpm
.
cpm
.
toDouble
()
/
100000
),
Currency
.
getInstance
(
currencyCode
))
//firebase
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment