| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- // using System;
- // using ET;
- // using UnityEngine;
- // using GFGGame.Launcher;
- //
- // namespace GFGGame
- // {
- // public class AliManagerr : SingletonBase<AliManagerr>
- // {
- // public void Init()
- // {
- // #if GFGZSB
- // AliPayManagerInit.Instance.aliSDKListener = new AliPaySDKListener();
- // #endif
- // }
- //
- // //支付宝支付
- // public void Pay(string orderStr)
- // {
- // AliPayManagerInit.Instance.ShowSwitchPayment(orderStr);
- // }
- //
- // //微信支付
- // public void PayVx(string appId, string mchId, string prepayId, string packageValue,
- // string nonceStr, string timestamp, string sign, string callBackObjectName = "AliPayGameObject",
- // string callBackFuncName = "VxPayReceive")
- // {
- // AliPayManagerInit.Instance.VxShowSwitchPayment(appId, mchId, prepayId, packageValue,
- // nonceStr, timestamp, sign, callBackObjectName, callBackFuncName);
- // }
- // }
- //
- // #if GFGZSB
- // /// <summary>
- // /// SDK回调
- // /// </summary>
- // public class AliPaySDKListener : IAliSDKListener
- // {
- // public void AliPayReceiveAb(string message)
- // {
- // Debug.Log("Game.HotUpdate AliPayReceiveAb: " + message);
- // }
- //
- // public void VxPayReceiveAb(string message)
- // {
- // if (message == "0")
- // {
- // ViewManager.Hide<StorePayPropView>();
- // }
- // else
- // {
- // PromptController.Instance.ShowFloatTextPrompt("支付失败");
- // }
- // Debug.Log("Game.HotUpdate VxPayReceiveAb: " + message);
- // }
- // }
- // #endif
- // }
|