PostArgs["signAcc"]=$_SESSION["login_uid"] ; $allbetapiobj->PostArgs["signPw"]=$_SESSION["login_upw"] ; $allbetapiobj->PostArgs["targetSite"]=$_GET["env"] ; //$allbetapiobj -> QueryType = "Query"; //$allbetapiobj ->Allbet_JoinQs(); $allbetapiobj -> QueryType = "AccCheck"; $allbetapiobj ->Allbet_JoinQs(); $allbetapiobj -> QueryType = "Forward"; $apiRtn = $allbetapiobj -> Allbet_JoinQs(); $json = json_decode($apiRtn,true); if($json["error_code"] == "OK") { $historydbobj->addGamePlayHistory($_SESSION["login_uid"],"Allbet","1"); //echo "j:".var_dump($json);exit; $url= $json["gameLoginUrl"]; $arr = array('success' => "1","url"=>$url); header("Location: ".$url); } else { $logger->error("ws_ajax.php allbetPlay forward fail: ".$apiRtn); $arr = array('success' => "0", 'msg' => "遊戲暫時無法進入"); echo "遊戲暫時無法進入" ; } //echo json_encode($arr); } else{ $arr = array('success' => "0", 'msg' => "請登入"); //echo json_encode($arr); echo "請登入" ; // } ?>