Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3e817dfc
authored
Jul 09, 2025
by
ludi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复一个储值点的问题
parent
4d0bcdcd
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
51 additions
and
13 deletions
DevelopmentPods/FUSCommon/FUSCommon/Classes/FUSAPPConfigs/FUSFuSiWebViewEventHelper.m
DevelopmentPods/FUSCommon/FUSCommon/Classes/Payment/Model/FUSPaymentRechargeModel.h
DevelopmentPods/FUSCommon/FUSCommon/Classes/Payment/Model/FUSPaymentRechargeModel.m
DevelopmentPods/FUSCommon/FUSCommon/Classes/Payment/Other/FUSPaymentHttpHelper.m
FuSiLive.xcodeproj/project.pbxproj
FuSiLive.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
Modules/FUSChatCenterModule/FUSChatCenterModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
Modules/FUSShowRoomModule/FUSShowRoomModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
Modules/FUSUserCenterModule/FUSUserCenterModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
Pods/Pods.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
DevelopmentPods/FUSCommon/FUSCommon/Classes/FUSAPPConfigs/FUSFuSiWebViewEventHelper.m
View file @
3e817dfc
...
@@ -229,6 +229,7 @@ NSString * const kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARG
...
@@ -229,6 +229,7 @@ NSString * const kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARG
NSDictionary
*
dataDict
=
dict
[
@"data"
];
NSDictionary
*
dataDict
=
dict
[
@"data"
];
BOOL
shouldShare
=
[
dataDict
[
@"share"
]
boolValue
];
BOOL
shouldShare
=
[
dataDict
[
@"share"
]
boolValue
];
FUSLogInfo
(
@"FUSFuSiWebViewEventHelper --- didRecieveScriptMessage webCid:%@
\n
dataDict:%@"
,
webCid
,
dict
);
if
(
self
.
webCidEventHandler
)
{
if
(
self
.
webCidEventHandler
)
{
self
.
webCidEventHandler
(
dataDict
,
webCid
.
integerValue
);
self
.
webCidEventHandler
(
dataDict
,
webCid
.
integerValue
);
...
@@ -572,8 +573,9 @@ NSString * const kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARG
...
@@ -572,8 +573,9 @@ NSString * const kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARG
NSString
*
pid
=
dataDict
[
@"pid"
];
NSString
*
pid
=
dataDict
[
@"pid"
];
NSString
*
packageid
=
dataDict
[
@"packageid"
];
NSString
*
packageid
=
dataDict
[
@"packageid"
];
NSDictionary
*
chargeInfoDict
=
dataDict
[
@"chargeInfo"
];
NSMutableDictionary
*
trackEventDict
=
[@{
@"roomid"
:
FUSConfig
.
sharedInstanced
.
liveConfigs
.
currentRoomId
?:
@""
,
@"userid"
:
[
FUSCacheDataShare
shareStore
].
userDetailInfo
.
uid
,
@"pkg"
:
FUSConfig
.
sharedInstanced
.
appConfigs
.
appPKG
,
@"pid"
:
pid
,
@"packageid"
:
packageid
}
mutableCopy
];
NSMutableDictionary
*
trackEventDict
=
[@{
@"roomid"
:
FUSConfig
.
sharedInstanced
.
liveConfigs
.
currentRoomId
?:
@""
,
@"userid"
:
[
FUSCacheDataShare
shareStore
].
userDetailInfo
.
uid
,
@"pkg"
:
FUSConfig
.
sharedInstanced
.
appConfigs
.
appPKG
,
@"pid"
:
pid
,
@"packageid"
:
packageid
}
mutableCopy
];
if
([
NSString
isNull
:
pid
])
{
if
([
NSString
isNull
:
pid
]
||
chargeInfoDict
==
nil
)
{
[
FUSDialogView
fus_showDialog
:[
NSString
fus_localString
:
@"储值失败"
]];
[
FUSDialogView
fus_showDialog
:[
NSString
fus_localString
:
@"储值失败"
]];
[
trackEventDict
setObject
:
@"rechargefail"
forKey
:
@"result"
];
[
trackEventDict
setObject
:
@"rechargefail"
forKey
:
@"result"
];
[
FUSTalkingData
fus_trackEvent
:
kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARGE
label
:
@""
parameters
:
trackEventDict
];
[
FUSTalkingData
fus_trackEvent
:
kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARGE
label
:
@""
parameters
:
trackEventDict
];
...
@@ -584,7 +586,9 @@ NSString * const kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARG
...
@@ -584,7 +586,9 @@ NSString * const kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARG
[
FUSTalkingData
fus_trackEvent
:
kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE
label
:
@""
parameters
:
trackEventDict
];
[
FUSTalkingData
fus_trackEvent
:
kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE
label
:
@""
parameters
:
trackEventDict
];
}
}
[
FUSPaymentManager
fus_doAppStoreRechargeWithPid
:
pid
success
:
^
{
FUSPaymentRechargeModel
*
rechargeModel
=
[
FUSPaymentRechargeModel
fus_modelWithDict
:
chargeInfoDict
];
// ludy:原来是fus_doAppStoreRechargeWithPid,需要遍历寻找是否有下发的充值点校验再充值,现在不需要了,直接丢给服务器
[
FUSPaymentManager
fus_doAppStoreRechargeWithRechargeModel
:
rechargeModel
success
:
^
{
if
([[
UIViewController
fus_topViewController
]
isKindOfClass
:
NSClassFromString
(
@"FUSLiveMainViewController"
)])
{
if
([[
UIViewController
fus_topViewController
]
isKindOfClass
:
NSClassFromString
(
@"FUSLiveMainViewController"
)])
{
[
trackEventDict
setObject
:
@"rechargesuccess"
forKey
:
@"result"
];
[
trackEventDict
setObject
:
@"rechargesuccess"
forKey
:
@"result"
];
[
FUSTalkingData
fus_trackEvent
:
kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARGE
label
:
@""
parameters
:
trackEventDict
];
[
FUSTalkingData
fus_trackEvent
:
kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARGE
label
:
@""
parameters
:
trackEventDict
];
...
...
DevelopmentPods/FUSCommon/FUSCommon/Classes/Payment/Model/FUSPaymentRechargeModel.h
View file @
3e817dfc
...
@@ -71,4 +71,6 @@ orderid = 11111;
...
@@ -71,4 +71,6 @@ orderid = 11111;
@property
(
nonatomic
,
strong
)
FUSPaymentPriceModel
*
priceModel
;
@property
(
nonatomic
,
strong
)
FUSPaymentPriceModel
*
priceModel
;
-
(
void
)
fus_reloadPriceModel
;
@end
@end
DevelopmentPods/FUSCommon/FUSCommon/Classes/Payment/Model/FUSPaymentRechargeModel.m
View file @
3e817dfc
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "FUSPaymentRechargeModel.h"
#import "FUSPaymentRechargeModel.h"
#import "FUSCommon/FUSCacheDataShare.h"
@implementation
FUSPaymentRechargeModel
@implementation
FUSPaymentRechargeModel
...
@@ -17,4 +18,19 @@
...
@@ -17,4 +18,19 @@
return
@{
@"price"
:
[
FUSPaymentPriceModel
class
]};
return
@{
@"price"
:
[
FUSPaymentPriceModel
class
]};
}
}
-
(
void
)
fus_reloadPriceModel
{
for
(
FUSPaymentPriceModel
*
priceDict
in
self
.
price
)
{
// 判断当前用户处于哪个国家
if
([[
priceDict
.
country
description
]
isEqualToString
:[
FUSCacheDataShare
shareStore
].
userVerifyInfo
.
countryCode
])
{
self
.
priceModel
=
priceDict
;
break
;
}
else
{
// 找不到对应国家默认显示美国的储值点
if
([[
priceDict
.
country
description
]
isEqualToString
:
@"1"
]){
self
.
priceModel
=
priceDict
;
}
}
}
}
@end
@end
DevelopmentPods/FUSCommon/FUSCommon/Classes/Payment/Other/FUSPaymentHttpHelper.m
View file @
3e817dfc
...
@@ -119,6 +119,22 @@
...
@@ -119,6 +119,22 @@
return
;
return
;
}
}
if
(
rechargeModel
.
priceModel
==
nil
)
{
[
rechargeModel
fus_reloadPriceModel
];
}
if
(
rechargeModel
.
priceModel
.
country
==
nil
)
{
FUSLogInfo
(
@"--->创建支付订单失败, country未空"
);
if
(
failure
)
failure
(
@"创建支付订单失败"
,
ERROR_CODE
);
return
;
}
if
(
rechargeModel
.
priceModel
.
price
==
nil
)
{
FUSLogInfo
(
@"--->创建支付订单失败, price未空"
);
if
(
failure
)
failure
(
@"创建支付订单失败"
,
ERROR_CODE
);
return
;
}
NSDictionary
*
dataDict
=
@{
@"product"
:
@"宝石充值"
,
NSDictionary
*
dataDict
=
@{
@"product"
:
@"宝石充值"
,
@"country"
:
rechargeModel
.
priceModel
.
country
,
@"country"
:
rechargeModel
.
priceModel
.
country
,
@"payType"
:
@"APPLEPAY"
,
@"payType"
:
@"APPLEPAY"
,
...
...
FuSiLive.xcodeproj/project.pbxproj
View file @
3e817dfc
...
@@ -672,7 +672,7 @@
...
@@ -672,7 +672,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
FuSiLive/FuSiLive.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
FuSiLive/FuSiLive.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
20250626002
4
;
CURRENT_PROJECT_VERSION
=
20250626002
6
;
DEFINES_MODULE
=
YES
;
DEFINES_MODULE
=
YES
;
DEVELOPMENT_TEAM
=
6GG26BHUMC
;
DEVELOPMENT_TEAM
=
6GG26BHUMC
;
ENABLE_ON_DEMAND_RESOURCES
=
NO
;
ENABLE_ON_DEMAND_RESOURCES
=
NO
;
...
@@ -940,7 +940,7 @@
...
@@ -940,7 +940,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
FuSiLive/FuSiLive.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
FuSiLive/FuSiLive.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
20250626002
4
;
CURRENT_PROJECT_VERSION
=
20250626002
6
;
DEFINES_MODULE
=
YES
;
DEFINES_MODULE
=
YES
;
DEVELOPMENT_TEAM
=
6GG26BHUMC
;
DEVELOPMENT_TEAM
=
6GG26BHUMC
;
ENABLE_ON_DEMAND_RESOURCES
=
NO
;
ENABLE_ON_DEMAND_RESOURCES
=
NO
;
...
...
FuSiLive.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
3e817dfc
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<
k
e
y
>
NotificationService.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
NotificationService.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
9
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
6
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
Modules/FUSChatCenterModule/FUSChatCenterModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
3e817dfc
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
<
k
e
y
>
FUSChatCenterBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSChatCenterBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
2
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
4
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSChatCenterModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSChatCenterModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
1
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
3
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
3e817dfc
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
<
k
e
y
>
FUSShowRoomBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSShowRoomBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
7
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
8
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSShowRoomModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSShowRoomModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
3
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
5
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
3e817dfc
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
<
k
e
y
>
FUSUserCenterModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSUserCenterModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
5
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
2
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSUserCenterModuleBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSUserCenterModuleBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
8
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
9
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
Pods/Pods.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
3e817dfc
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
<
k
e
y
>
FUSBDAlphaPlayer-BDAlphaPlayer.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSBDAlphaPlayer-BDAlphaPlayer.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
6
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
7
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSBDAlphaPlayer.xcscheme
<
/k
e
y
>
<
k
e
y
>
FUSBDAlphaPlayer.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
<
k
e
y
>
FUSBDAlphaPlayer.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSBDAlphaPlayer.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
4
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
1
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSCommon-FUSCommonBundle.xcscheme
<
/k
e
y
>
<
k
e
y
>
FUSCommon-FUSCommonBundle.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
...
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