[WIP] SKU list
This commit is contained in:
@@ -144,6 +144,30 @@ extern "C" {
|
||||
}];
|
||||
}
|
||||
|
||||
void GetSKUList()
|
||||
{
|
||||
NSLog(@"TYSdkInterface GetSKUList ");
|
||||
[XYApi XYGetLocalProductPriceWithCompletion:^(XYResp * _Nonnull resp) {
|
||||
|
||||
NSMutableDictionary *resultDict = [@{} mutableCopy];
|
||||
[resultDict setValue:[NSString stringWithFormat:@"%ld", (long)resp.errCode] forKey:@"code"];
|
||||
if(resp.errCode == XYSuccess){
|
||||
NSLog(@"TYSdkInterface GetSKUList Success");
|
||||
NSLog(@"SKUList %@", resp.respObj);
|
||||
[resultDict setValue:resp.respObj forKey:@"respObj"];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"TYSdkInterface GetSKUList Faild");
|
||||
NSLog(@"SKUList %@", resp.errCode);
|
||||
}
|
||||
|
||||
NSString *result = DicTojsonString(resultDict);
|
||||
const char* param = AllocCString(result);
|
||||
UnitySendMessage("TYSdkFacade","SKUListResult", param);
|
||||
}];
|
||||
}
|
||||
|
||||
//打点
|
||||
void SetGaUserInfo(const char* userId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user