<?php
|
include_once "../../../Common/CommFunc.php";
|
include_once "../../../Common/Logging.php";
|
include_once '../../../Common/MongoDB7.php';
|
include_once "GamePlayer.php";
|
include_once "errorCode.php";
|
|
\Logging\CreateLogging("syncServerDataToLocal.php");
|
|
$code = $_GET['code'];
|
$openid = $_GET['openid'];
|
$gamename = $_GET['gamename'];
|
\Logging\LogInfo('_GET: ' . print_r($_GET, true));
|
|
// 验证权限等...
|
|
$gameconfig = parse_ini_file("config/" . $gamename . ".ini", true);
|
$gamePlayer = new GamePlayer($openid, $gameconfig["db"]);
|
$playerData = $gamePlayer->getSyncPlayerData($syncData);
|
\Logging\LogInfo('playerData: ' . print_r($playerData, true));
|
$ret = ErrorCode::retOK($playerData);
|
echo json_encode($ret);
|