[M] iOS add UnityKnowNew pay method
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#import <XYSDK/XYSDK.h>
|
||||
|
||||
#define TOKEN_ERROR @"-8"
|
||||
|
||||
extern "C" {
|
||||
|
||||
NSString* DicTojsonString(NSDictionary *dict)
|
||||
@@ -126,6 +125,13 @@ extern "C" {
|
||||
|
||||
}
|
||||
|
||||
//支付 new
|
||||
void UnityKnowNew(const char* productId, const char* productPrice, const char* productName,
|
||||
const char* productCount, const char* prodorderId, const char* appInfo, const char* pType)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//打点
|
||||
void SetGaUserInfo(const char* userId)
|
||||
{
|
||||
|
||||
@@ -30,16 +30,21 @@ namespace tysdk
|
||||
if (_instance == null)
|
||||
{
|
||||
_instance = new GameObject("TYSdkFacade").AddComponent<TYSdkFacade>();
|
||||
Init();
|
||||
DontDestroyOnLoad(_instance.gameObject);
|
||||
}
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
public static void Init()
|
||||
public void Init()
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
UnityBridgeFunc.InitSDK();
|
||||
#endif
|
||||
}
|
||||
|
||||
public void InitAfterLogin()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace tysdk
|
||||
{
|
||||
if (!IsLoggedIn) return new SKUDetail() { code = "-1", msg = "未登录" };
|
||||
|
||||
#if UNITY_EDITOR
|
||||
#if UNITY_EDITOR || UNITY_IOS
|
||||
await Task.Yield();
|
||||
var result = new SKUDetail();
|
||||
return result;
|
||||
@@ -130,4 +130,4 @@ namespace tysdk
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user