[bilisdk]支付回调区分dev和release
parent
374642c8ed
commit
4c3f6d95d7
|
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c83b4b2096243a94da21b6ac2f5d5688
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c5af98e21956f0c4891b3aabcaee3af7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue