[M] sync from n3-world
This commit is contained in:
@@ -146,7 +146,7 @@ namespace tysdk
|
||||
public void Logout()
|
||||
{
|
||||
UnityEngine.Debug.Log("Logout");
|
||||
if(_accountInfo != null) return;
|
||||
if(_accountInfo != null)
|
||||
{
|
||||
UnityBridgeFunc.UnityLogOutByChannel(_accountInfo.channel);
|
||||
}
|
||||
@@ -396,7 +396,7 @@ namespace tysdk
|
||||
|
||||
|
||||
string tycs = tyurl == defaultTyurl ?
|
||||
"https://hwcsh.tygameworld.com /template/appCancel/note.html"
|
||||
"https://hwcsh.tygameworld.com/template/appCancel/note.html"
|
||||
:
|
||||
"https://customermanage-feature-test-web-test.tuyougame.cn/appCancel/note.html";
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace tysdk
|
||||
=================================================*/
|
||||
|
||||
//public async Task<PaymentInfo> Pay(string prodId, string prodPrice, string prodName, int count, string pType, string price_amount_micros =null)
|
||||
public async Task<PaymentInfo> Pay(SKUDetail prod, int count)
|
||||
public async Task<PaymentInfo> Pay(SKUDetail prod, int count, float usdprice)
|
||||
{
|
||||
if (!IsLoggedIn) return new PaymentInfo() { code = "-1", msg = "未登录" };
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace tysdk
|
||||
//to base64
|
||||
extraInfo = System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(extraInfo));
|
||||
var prodId = prod.ProdID;
|
||||
var prodPrice = prod.price;
|
||||
var prodPrice = usdprice.ToString();
|
||||
var prodName = prod.title;
|
||||
var pType = "googleiab.global.app";
|
||||
|
||||
|
||||
@@ -137,7 +137,6 @@ namespace tysdk
|
||||
public static void UnityKnowNew(string productId, string productPrice, string productName,
|
||||
string productCount, string prodorderId, string appInfo,string pType)
|
||||
{
|
||||
Debug.LogError("[UnityKnowNew] pType:" + pType);
|
||||
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
|
||||
{
|
||||
sdkManager.CallStatic("UnityKnowNew", productId, productPrice, productName,
|
||||
|
||||
Reference in New Issue
Block a user