From e262192aa30fc3be7e53e6626acf8f218914eef9 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 9 Oct 2020 18:38:09 +0800 Subject: [PATCH] 1 --- webapp/controller/AdditemController.class.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/webapp/controller/AdditemController.class.php b/webapp/controller/AdditemController.class.php index ad8b124..44ef8f5 100644 --- a/webapp/controller/AdditemController.class.php +++ b/webapp/controller/AdditemController.class.php @@ -70,7 +70,10 @@ class AdditemController{ $item_num = $_REQUEST['item_num']; $accountid = $_REQUEST['account_id']; $time = $_REQUEST['time']; - if (phpcommon\getIPv4() != '124.78.1.111') { + // if (phpcommon\getIPv4() != '124.78.1.111') { + // return; + // } + if ($_REQUEST['passwd'] != 'kingsome') { return; } $conn = $this->getMysql($accountid); @@ -130,7 +133,10 @@ class AdditemController{ $item_num = $_REQUEST['item_num']; $accountid = $_REQUEST['account_id']; $time = $_REQUEST['time']; - if (phpcommon\getIPv4() != '124.78.1.111') { + // if (phpcommon\getIPv4() != '124.78.1.111') { + // return; + // } + if ($_REQUEST['passwd'] != 'kingsome') { return; } $conn = $this->getMysql($accountid); @@ -162,7 +168,10 @@ class AdditemController{ $item_num = $_REQUEST['item_num']; $accountid = $_REQUEST['account_id']; $time = $_REQUEST['time']; - if (phpcommon\getIPv4() != '124.78.1.111') { + // if (phpcommon\getIPv4() != '124.78.1.111') { + // return; + // } + if ($_REQUEST['passwd'] != 'kingsome') { return; } $conn = $this->getMysql($accountid);