[bilisdk]支付回调区分dev和release

main
Yurui 2026-03-05 19:52:31 +08:00
parent 374642c8ed
commit 4c3f6d95d7
3 changed files with 31 additions and 3 deletions

View File

@ -1,5 +1,6 @@
#if SDK_BILIBILI
using PhxhSDK.AOT.Bilibili;
using PhxhSDK.AOT.VersionUpdate;
using System;
using UnityEngine;
@ -30,11 +31,16 @@ namespace PhxhSDK
if (long.TryParse(UID, out long uid))
{
DebugUtil.Log("bilibili支付");
GSCSdkInterface.androidPay(uid, UserName, role, totalFee, gameMoney, orderNum, goodName, goodDescription,
"Test", "https://openapi.kedrgame.com/api/v1/biliGame/notify", sign);
string url = PackDataInst.Inst.localInfo.isDev ?
"https://dev_openapi.kedrgame.com/api/v1/biliGame/notify" :
"https://openapi.kedrgame.com/api/v1/biliGame/notify";
string desc = PackDataInst.Inst.localInfo.isDev ? "Dev" : "Release";
GSCSdkInterface.androidPay(uid, UserName, role, totalFee, gameMoney, orderNum, goodName, goodDescription, desc, url, sign);
}
else
Debug.LogError($"UID错误:{UID}");
DebugUtil.LogError($"bilibili支付UID错误:{UID}");
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c83b4b2096243a94da21b6ac2f5d5688
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c5af98e21956f0c4891b3aabcaee3af7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: