增加返还交易市场被锁金币(自动下架)sql

This commit is contained in:
songliang 2023-07-19 16:02:12 +08:00
parent a03cfa7cfd
commit 3d1c737fbf
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
UPDATE t_user o JOIN (
SELECT owner_address, item_id, SUM(amount) as t FROM t_market_store WHERE `status`=3 AND item_id=10001 GROUP BY owner_address
) t ON o.address = t.owner_address
SET o.gold = o.gold + t.t;
UPDATE t_market_store SET `status`=1 WHERE `status`=3;

View File

@ -173,7 +173,7 @@ class BlockChainService {
private static function getWeb3ServiceUrl()
{
if (SERVER_ENV == _DEBUG) {
return 'https://login-test.kingsome.cn/webapp/index.php';
return 'https://192.144.140.87/webapp/index.php';
}
if (SERVER_ENV == _TEST) {
return 'http://127.0.0.1:7672/webapp/index.php';