From 128c06b9a65f3a55da9507480e625594edd2f944 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 18 Nov 2021 19:17:45 +0800 Subject: [PATCH] 1 --- webapp/controller/NBagController.class.php | 40 ++-------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/webapp/controller/NBagController.class.php b/webapp/controller/NBagController.class.php index 01b4b14..d13645c 100644 --- a/webapp/controller/NBagController.class.php +++ b/webapp/controller/NBagController.class.php @@ -1,39 +1,9 @@ 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"); - - } }