支付宝功能打包测试
parent
7cbcc9fcf3
commit
80f7674e3a
|
|
@ -28,6 +28,7 @@ public class AliPayHandle : MonoBehaviour
|
|||
if (_instance == null)
|
||||
{
|
||||
_instance = this;
|
||||
Initialize();
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
else
|
||||
|
|
@ -40,7 +41,6 @@ public class AliPayHandle : MonoBehaviour
|
|||
int index = 0)
|
||||
{
|
||||
DebugUtil.Log("支付宝支付");
|
||||
//AliPayTest(currencyID);
|
||||
PayRequest(currencyID, count, itemID);
|
||||
}
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ public class AliPayHandle : MonoBehaviour
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查微信是否已初始化
|
||||
/// 检查支付宝是否已初始化
|
||||
/// </summary>
|
||||
public bool IsInitialized()
|
||||
{
|
||||
|
|
@ -80,18 +80,10 @@ public class AliPayHandle : MonoBehaviour
|
|||
PaymentServiceLocator.AliPaymentService.BuyGoods(currencyID, count, itemID);
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void PayRequest(int actorID)
|
||||
{
|
||||
//string payUrl = .Instance.PostURL + PAY_SIGN;//PackDataInst.Inst.localInfo.httpUrl
|
||||
//DebugUtil.Log($"发送拉起Bilibili支付请求地址: {payUrl}");
|
||||
//
|
||||
//List<Items> itemsList = new() { new() { product_id = currencyID, count = count } };
|
||||
//string itemJsonData = JsonConvert.SerializeObject(itemsList);
|
||||
//DebugUtil.Log($"items.jsonData:{itemJsonData}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测试用支付按钮,正式环境请调用BuyGoods方法
|
||||
/// </summary>
|
||||
/// <param name="orderInfo"></param>
|
||||
public void AliPayTest(string orderInfo)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in New Issue