public static void GetGameClubData(List<int> typeList,Action<string,string,string> successAction)
{
GetGameClubDataOption option = new GetGameClubDataOption();
option.dataTypeList = new DataType[typeList.Count];
int length = typeList.Count;
for (int i = 0; i < length; i++)
{
Debug.LogError("type:" + typeList[i]);
option.dataTypeList[i].type = typeList[i];
}
Debug.LogError("Length:"+option.dataTypeList.Length);
option.success = (GetGameClubDataSuccessCallbackResult) => {
Debug.LogError("encryptedData:" + GetGameClubDataSuccessCallbackResult.encryptedData);
Debug.LogError("iv:" + GetGameClubDataSuccessCallbackResult.iv);
Debug.LogError("signature:"+GetGameClubDataSuccessCallbackResult.signature);
Debug.LogError("cloudID:"+GetGameClubDataSuccessCallbackResult.cloudID);
Debug.LogError("errMsg:" + GetGameClubDataSuccessCallbackResult.errMsg);
successAction(GetGameClubDataSuccessCallbackResult.encryptedData, GetGameClubDataSuccessCallbackResult.iv, GetGameClubDataSuccessCallbackResult.signature);
};
option.fail = (GeneralCallbackResult) => {
Debug.LogError(GeneralCallbackResult.errMsg);
};
WX.GetGameClubData(option);
}
传入的typeList {1,3,4,5,6,7,8,9} 和 {1}都试过
开发工具和真机模拟也是一样的结果,所有参数都为空字符串
在js里写代码就是正常的,用Unity转换插件提供的WX.cs接口就不正常