|
@@ -0,0 +1,32 @@
|
|
|
+using ET;
|
|
|
+
|
|
|
+namespace GFGGame
|
|
|
+{
|
|
|
+ public class ShareRecordSProxy
|
|
|
+ {
|
|
|
+ /// <summary>
|
|
|
+ /// 分享成功请求服务端进行分享次数记录
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ public static async ETTask<bool> ReqShareRecord()
|
|
|
+ {
|
|
|
+ M2C_ShareRecordTimes response;
|
|
|
+ response = (M2C_ShareRecordTimes)await MessageHelper.SendToServer(new C2M_ShareRecordTimes());
|
|
|
+ if (response != null)
|
|
|
+ {
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
+ {
|
|
|
+ if (response.RewardList.Count > 0)
|
|
|
+ {
|
|
|
+ // 奖励弹窗
|
|
|
+ BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.RewardList));
|
|
|
+ }
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|