1
This commit is contained in:
parent
88a2a920d4
commit
128c06b9a6
@ -1,39 +1,9 @@
|
||||
<?php
|
||||
|
||||
require_once 'metatable/drop.php';
|
||||
|
||||
class NBagController extends BaseAuthedController {
|
||||
|
||||
|
||||
|
||||
public function testPhpFunc()
|
||||
{
|
||||
//_REQUEST
|
||||
$account_id = $_REQUEST['account_id'];
|
||||
$conn = $this->getMysql($account_id);
|
||||
|
||||
// $row = $conn->execQueryOne('SELECT guildcoin_num FROM user WHERE accountid=:accountid;',
|
||||
// array(
|
||||
// ':accountid' => $account_id
|
||||
// ));
|
||||
$sqlStr = "SELECT id,num FROM bag WHERE accountid=:accountid; ";
|
||||
$row = $conn->execQueryOne($sqlStr,array(':accountid' => $account_id));
|
||||
if($row) {
|
||||
error_log("Test3======");
|
||||
}
|
||||
else{
|
||||
error_log("Test4=======");
|
||||
}
|
||||
$this->sendDataToClient(0,"test02",$row);
|
||||
//phpcommon\
|
||||
// echo json_encode(array(
|
||||
// 'errcode' => 0,
|
||||
// 'errmsg' => '',
|
||||
// 'data' => $row,
|
||||
// ));
|
||||
// ;
|
||||
|
||||
// error_log("FromPhpTest6".$_REQUEST);
|
||||
// error_log("FromPhpTest3".$_REQUEST["name"]);
|
||||
}
|
||||
public function addItemToDB()
|
||||
{
|
||||
// $itemArr = [10101,10102,10103,10104,10105,10106,10200,10201,
|
||||
@ -193,12 +163,6 @@ class NBagController extends BaseAuthedController {
|
||||
}
|
||||
$this->sendDataToClient(100,"allYokeItem",$allYokeItem);
|
||||
}
|
||||
public function testPhpFunc2()
|
||||
{
|
||||
echo json_encode("name=");
|
||||
error_log("FromPhpTest2");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user