diff --git a/webapp/controller/ToolsController.class.php b/webapp/controller/ToolsController.class.php index cbeada8d..425a778b 100644 --- a/webapp/controller/ToolsController.class.php +++ b/webapp/controller/ToolsController.class.php @@ -448,6 +448,8 @@ class ToolsController extends BaseController { $address = '0x57724eb7e63ebfd9833dcb7371ff9508ef7de48a'; $itemId = V_ITEM_GOLD_BULLION_1W; $gold = 1000; + $checkSql1 = 'SELECT COUNT(*) FROM t_nft WHERE token_id IN ('; + $checkSql2 = 'SELECT COUNT(*) FROM t_gold_bullion WHERE token_id IN ('; for ($i = 0; $i < $num; ++$i) { $tokenId = BuyRecord::genOrderId ( @@ -466,7 +468,24 @@ class ToolsController extends BaseController { '' . $gold . ',' . '' . myself()->_getNowTime() . ',' . '' . myself()->_getNowTime() . ");\n"; + if ($i == 0) { + $checkSql1 .= '"' . $tokenId . '"'; + } else { + $checkSql1 .= ',"' . $tokenId . '"'; + } + + if ($i == 0) { + $checkSql2 .= '"' . $tokenId . '"'; + } else { + $checkSql2 .= ',"' . $tokenId . '"'; + } + } + + $checkSql1 .= ");\n"; + $checkSql2 .= ");\n"; + echo $checkSql1; + echo $checkSql2; } }