金币副本

高司机 2017-07-07 09:57:48

/* "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']);
}
...全文
119 点赞 收藏 1
写回复
1 条回复
不得了不得了康纳 2017年07月07日
所以你想表达什么...
回复 点赞
发动态
发帖子
基础编程
创建于2007-09-28

9734

社区成员

14.0w+

社区内容

从PHP安装配置,PHP入门,PHP基础到PHP应用
社区公告
暂无公告