diff --git a/sql/giveback_market_gold.sql b/sql/giveback_market_gold.sql new file mode 100644 index 00000000..da1b6c28 --- /dev/null +++ b/sql/giveback_market_gold.sql @@ -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; diff --git a/webapp/services/BlockChainService.php b/webapp/services/BlockChainService.php index a2c16252..6ee9154a 100644 --- a/webapp/services/BlockChainService.php +++ b/webapp/services/BlockChainService.php @@ -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';