This commit is contained in:
aozhiwei 2021-11-18 19:21:08 +08:00
parent 128c06b9a6
commit d34b8bd549
3 changed files with 34 additions and 37 deletions

View File

@ -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]);
}
}

View File

@ -2165,5 +2165,36 @@ class RoleController extends BaseAuthedController {
'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]);
}
}
?>

View File

@ -24,7 +24,8 @@ function loginVerify($accountid, $sessionid)
}
$rewriteRule = array(
'NGun' => 'Gun'
'NGun' => 'Gun',
'Property' => 'Role'
);
function getRewriteClass($oldC)