1
This commit is contained in:
parent
6d2ab1315c
commit
87a8a2cc5c
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user