Merge branch 'james_bc' of git.kingsome.cn:server/game2006api into james_bc

This commit is contained in:
hujiabin 2022-11-08 21:35:40 +08:00
commit f28b65b7bd
3 changed files with 9 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -162,7 +162,9 @@ class ShopController extends BaseAuthedController {
$itemMeta = mt\Item::get($row['goods_id']);
$propertyChgService = new services\PropertyChgService();
$this->internalAddItem($propertyChgService, $itemMeta);
for ($i = 0; $i<$goods_num; $i++) {
$this->internalAddItem($propertyChgService, $itemMeta);
}
$awardService = new services\AwardService();
$awardService->addItem($row['goods_id'], $goods_num);
ShopBuyRecord::add($id, $goods_num);