diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 010f6f66..42f8f3cb 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -191,12 +191,12 @@ class BagController extends BaseAuthedController { $errMsg = 'Parameter error name length must not be greater than 12'; return; } - if(!preg_match("/^[a-z\d]*$/i",$name)) + /*if(!preg_match("/^[a-z\d]*$/i",$name)) { $errCode = 5; $errMsg = 'Excuse me , the name you entered is in the wrong format.'; return; - } + }*/ $nameService = new services\NameService(); if (!$nameService->verifyNameSign($name, $nameSign)){ $errCode = 5; diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index e7a16ed0..a97af43c 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -41,6 +41,7 @@ class BlockChainController extends BaseAuthedController { ))); return; } + error_log(json_encode($_REQUEST)); } public function getTransactionList() @@ -266,6 +267,9 @@ class BlockChainController extends BaseAuthedController { myself()->_rspErr(1, 'num paramater error'); return; } + error_log(json_encode( + $_REQUEST + )); if (!$itemDb || $itemDb['item_num'] < $num) { myself()->_rspErr(1, 'item not enough'); return;