21,893
社区成员




/* "expcopy"=>array(
"001" =>array("result"=>1,"leftcount"=>0,"resetcount"=>2, "reward"=>array()), //leftcount 剩余的挑战次数 resetcount 已经重置了多少次
"002" =>array("result"=>0,"leftcount"=>0,"resetcount"=>2, "reward"=>array()),
);
);*/
public function getExpGoldCopyInfo($accountId, $stageId)
{
$gamecopyInfo = $this->Player->getUserFeildInfo(array("gamecopy","vip"),$accountId);
if(count($gamecopyInfo["gamecopy"]) == 0 )
{
return array( "ts"=> time(), "errcode" => -2, "errmsg" => "cannot find this gamecopy");
}
if(!array_key_exists($stageId,$gamecopyInfo["gamecopy"]['expcopy']))////检查这个关卡是不是存在
{
return array( "ts"=> time(), "errcode" => -3, "errmsg" => "cannot find this gamecopy");
}
$this->checkGameCopy($gamecopyInfo["gamecopy"]);
return array( "ts"=> time(), "errcode" => 0, "errmsg" => "", "stage"=>array("result"=>$gamecopyInfo["gamecopy"]['expcopy'][$stageId]['result'],
"leftcount"=>$gamecopyInfo["gamecopy"]['expcopy'][$stageId]['leftcount'],
"resetcount"=>$gamecopyInfo["gamecopy"]['expcopy'][$stageId]['resetcount']);
}