|
@@ -344,7 +344,7 @@ namespace Api
|
|
|
ApiNotSession(path, req, success, errAction);
|
|
|
}
|
|
|
|
|
|
- public void GetBattleDetail(string battleSession, Action<BattleDetailListObj> success,
|
|
|
+ public void GetBattleDetail(string battleSession, Action<BattleDetailListObj> success,
|
|
|
Action<int, string> errAction)
|
|
|
{
|
|
|
var req = new ModelApiRequest
|
|
@@ -357,6 +357,18 @@ namespace Api
|
|
|
success(resp.battleInfo);
|
|
|
}, errAction);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ public void playerQuitGame(string battleSession, Action<ResponseSuccessData> success,
|
|
|
+ Action<int, string> errAction)
|
|
|
+ {
|
|
|
+ var req = new ModelApiRequest
|
|
|
+ {
|
|
|
+ api = "playerQuitGame",
|
|
|
+ battleSession = battleSession
|
|
|
+ };
|
|
|
+ Api(req, success, errAction);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|