remove TestPhp*.*

This commit is contained in:
aozhiwei 2021-10-15 15:56:28 +08:00
parent 9a0a3cf2a5
commit 371b345e54
2 changed files with 0 additions and 69 deletions

View File

@ -1,14 +0,0 @@
<?php
class TestPhp extends BaseAuthedController {
public testPhpFunc()
{
error_log("FromPhpTest");
}
}

View File

@ -1,55 +0,0 @@
<?php
class TestPhpController extends BaseAuthedController {
public function testPhpFunc()
{
//_REQUEST
$account_id = $_REQUEST['account_id'];;
$conn = $this->getMysql($account_id);
if (!$conn) {
error_log("没有这个玩家测试======".$conn);
}
else
{
error_log("cesMySqlConnet");
}
$ii = 1;
// $row = $conn->execQueryOne('SELECT guildcoin_num FROM user WHERE accountid=:accountid;',
// array(
// ':accountid' => $account_id
// ));
$row = $conn->execQueryOne('SELECT * FROM user ');
if($row) {
error_log("Test1======");
}
else{
error_log("Test2=======");
}
$this->sendDataToClient(0,"test",$row);
// echo json_encode(array(
// 'errcode' => 0,
// 'errmsg' => '',
// 'data' => $row,
// ));
// ;
// error_log("FromPhpTest6".$_REQUEST);
// error_log("FromPhpTest3".$_REQUEST["name"]);
}
public function testPhpFunc2()
{
echo json_encode("name=");
error_log("FromPhpTest2");
//三方势力 经济贸易中心城池放好,有等级限制,我在这个国家能做写什么
//我茅草屋开始建造
//建筑设施 铁匠铺,民屋 饭店 酒馆 ,训练营
//饭店 酒馆
//
}
}