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