|
|
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
|
|
|
using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
|
using UnityEngine;
|
|
|
-
|
|
|
+using System.Text;
|
|
|
using qsdk;
|
|
|
|
|
|
public class YouYiSDKiOS : SDKBase
|
|
|
@@ -157,6 +157,32 @@ public class YouYiSDKiOS : SDKBase
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ public override bool IsReportAction() { return true; }
|
|
|
+
|
|
|
+ public override void ReportAction(Dictionary<object, object> datas)
|
|
|
+ {
|
|
|
+ base.ReportAction(datas);
|
|
|
+ GameRoleInfo gameRoleInfo = SDKMgr.Instance.GetGameRoleInfo();
|
|
|
+
|
|
|
+ if (gameRoleInfo == null || !gameRoleInfo.Valid())
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ StringBuilder stringBuilder = new StringBuilder();
|
|
|
+ int count = 0;
|
|
|
+ foreach (var item in datas)
|
|
|
+ {
|
|
|
+ count++;
|
|
|
+ if (count == datas.Count)
|
|
|
+ stringBuilder.Append(item.Key.ToString()).Append(",").Append(item.Value.ToString());
|
|
|
+ else
|
|
|
+ stringBuilder.Append(item.Key.ToString()).Append(",").Append(item.Value.ToString()).Append(",");
|
|
|
+ }
|
|
|
+ QSdkMgr.UpdateRoleInfo(4, gameRoleInfo, stringBuilder.ToString());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public override void CallInitSuccessCB()
|
|
|
{
|
|
|
m_YouYiListener.OnInitSuccess();
|