From bc118f0e790c272f21300cf23166ef87def1c1c0 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 14 Aug 2023 19:42:27 +0800 Subject: [PATCH] 1 --- webapp/services/ContractConfig.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/webapp/services/ContractConfig.php b/webapp/services/ContractConfig.php index 8b4855e5..c0674b6a 100644 --- a/webapp/services/ContractConfig.php +++ b/webapp/services/ContractConfig.php @@ -15,7 +15,7 @@ class ContractConfig extends BaseService { if (!$type){ return; } - // if (SERVER_ENV != _ONLINE){ + if (SERVER_ENV != _ONLINE){ switch ($type){ case "erc721" : { return array( @@ -31,7 +31,22 @@ class ContractConfig extends BaseService { ); } } - // } - + } else { + switch ($type){ + case "erc721" : { + return array( + "hero" => "0x79fc2a4216A1e595DBD09D13c4B4bD3B095d5bb2", + "gun" => "", + "chip" => "0x551838d7754157D13e7D945b8a37bBD6Ad50dDC7", + ); + } + case "erc20" : { + return array( + "CEC" => "", + "CEG" => "0x741482aE1480E552735E44Ff3A733448AcBbeD8d", + ); + } + } + } } }