fixbug:ios抖音支付回跳
This commit is contained in:
+10
@@ -22,6 +22,16 @@
|
|||||||
<string>wx7a5902cd556d9396</string>
|
<string>wx7a5902cd556d9396</string>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Editor</string>
|
||||||
|
<key>CFBundleURLName</key>
|
||||||
|
<string>trustbridgeapp</string>
|
||||||
|
<key>CFBundleURLSchemes</key>
|
||||||
|
<array>
|
||||||
|
<string>trustbridgeapp</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
+2
-7
@@ -60,13 +60,8 @@
|
|||||||
"ios" : {
|
"ios" : {
|
||||||
"dSYMs" : false,
|
"dSYMs" : false,
|
||||||
"idfa" : false,
|
"idfa" : false,
|
||||||
"urltypes" : [
|
"urltypes" : "trustbridgeapp",
|
||||||
{
|
"associatedDomains" : [ "applinks:app.tbmall.xin", "applinks:ulink.trustbridgeapp.com" ],
|
||||||
"urlidentifier" : "com.trustbridgeapp.mm",
|
|
||||||
"urlschemes" : "trustbridgeapp"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"associatedDomains" : [ "applinks:ulink.trustbridgeapp.com" ],
|
|
||||||
"capabilities" : {
|
"capabilities" : {
|
||||||
"entitlements" : {
|
"entitlements" : {
|
||||||
"com.apple.developer.associated-domains" : [ "applinks:app.tbmall.xin" ]
|
"com.apple.developer.associated-domains" : [ "applinks:app.tbmall.xin" ]
|
||||||
|
|||||||
+3
-1
@@ -119,7 +119,9 @@ async function executePayment(payment, key) {
|
|||||||
if (key !== accountKey()) return { state: 'pending' };
|
if (key !== accountKey()) return { state: 'pending' };
|
||||||
const payInfo = toSdkPayInfo(payment);
|
const payInfo = toSdkPayInfo(payment);
|
||||||
if (!canOpenDypay()) throw new Error('请先安装或升级抖音客户端');
|
if (!canOpenDypay()) throw new Error('请先安装或升级抖音客户端');
|
||||||
if (!initDypay({ appId: payInfo.appid, callbackScheme: payment.douyin.callbackScheme || 'trustbridgeapp' })) {
|
const callbackScheme = payment.douyin?.callbackScheme || 'trustbridgeapp';
|
||||||
|
const universalLink = payment.douyin?.universalLink || payment.douyin?.UniversalLinks || 'https://app.tbmall.xin/uni-universallinks/__UNI__4910728/';
|
||||||
|
if (!initDypay({ appId: payInfo.appid, callbackScheme, universalLink })) {
|
||||||
throw new Error('支付初始化失败,请稍后重试');
|
throw new Error('支付初始化失败,请稍后重试');
|
||||||
}
|
}
|
||||||
// Persist before entering native code so a killed process remains recoverable.
|
// Persist before entering native code so a killed process remains recoverable.
|
||||||
|
|||||||
Reference in New Issue
Block a user