1
This commit is contained in:
parent
128c06b9a6
commit
d34b8bd549
@ -1,35 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
class PropertyController extends BaseAuthedController {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function updateMoney()
|
|
||||||
{
|
|
||||||
$account_id = $_REQUEST['account_id'];
|
|
||||||
$conn = $this->getMysql($account_id);
|
|
||||||
$sqlStr = "SELECT coin_num FROM user WHERE accountid=:accountid; ";
|
|
||||||
$row = $conn->execQuery($sqlStr,array(':accountid' => $account_id));
|
|
||||||
if($row) {
|
|
||||||
error_log("UpdateMoney======".json_encode($row));
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
error_log("Test06=======");
|
|
||||||
}
|
|
||||||
$this->sendDataToClient(1,"ok",$row[0]);
|
|
||||||
}
|
|
||||||
public function updateMoneyAndLottery()
|
|
||||||
{
|
|
||||||
$account_id = $_REQUEST['account_id'];
|
|
||||||
$conn = $this->getMysql($account_id);
|
|
||||||
$sqlStr = "SELECT coin_num,rmb_num FROM user WHERE accountid=:accountid; ";
|
|
||||||
$row = $conn->execQuery($sqlStr,array(':accountid' => $account_id));
|
|
||||||
if($row) {
|
|
||||||
error_log("UpdateMoneyAndLottery======".json_encode($row));
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
|
|
||||||
}
|
|
||||||
$this->sendDataToClient(3,"ok",$row[0]);
|
|
||||||
}
|
|
||||||
}
|
|
@ -2165,5 +2165,36 @@ class RoleController extends BaseAuthedController {
|
|||||||
'all_item_list' => $all_item_list,
|
'all_item_list' => $all_item_list,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function updateMoney()
|
||||||
|
{
|
||||||
|
$account_id = $_REQUEST['account_id'];
|
||||||
|
$conn = $this->getMysql($account_id);
|
||||||
|
$sqlStr = "SELECT coin_num FROM user WHERE accountid=:accountid; ";
|
||||||
|
$row = $conn->execQuery($sqlStr,array(':accountid' => $account_id));
|
||||||
|
if($row) {
|
||||||
|
error_log("UpdateMoney======".json_encode($row));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
error_log("Test06=======");
|
||||||
|
}
|
||||||
|
$this->sendDataToClient(1,"ok",$row[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function updateMoneyAndLottery()
|
||||||
|
{
|
||||||
|
$account_id = $_REQUEST['account_id'];
|
||||||
|
$conn = $this->getMysql($account_id);
|
||||||
|
$sqlStr = "SELECT coin_num,rmb_num FROM user WHERE accountid=:accountid; ";
|
||||||
|
$row = $conn->execQuery($sqlStr,array(':accountid' => $account_id));
|
||||||
|
if($row) {
|
||||||
|
error_log("UpdateMoneyAndLottery======".json_encode($row));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
|
}
|
||||||
|
$this->sendDataToClient(3,"ok",$row[0]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -24,7 +24,8 @@ function loginVerify($accountid, $sessionid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$rewriteRule = array(
|
$rewriteRule = array(
|
||||||
'NGun' => 'Gun'
|
'NGun' => 'Gun',
|
||||||
|
'Property' => 'Role'
|
||||||
);
|
);
|
||||||
|
|
||||||
function getRewriteClass($oldC)
|
function getRewriteClass($oldC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user