diff --git a/webapp/controller/WalletController.class.php b/webapp/controller/WalletController.class.php index b0c793e3..509b5fd4 100644 --- a/webapp/controller/WalletController.class.php +++ b/webapp/controller/WalletController.class.php @@ -54,7 +54,7 @@ class WalletController extends BaseController { myself()->_rspErr(0, 'not found'); return; } - if ($row['state'] == 2) { + if ($row['state'] == 1) { myself()->_rspErr(2, 'processing'); return; } diff --git a/webapp/models/Transfer.php b/webapp/models/Transfer.php index c8eceef3..0d13801d 100644 --- a/webapp/models/Transfer.php +++ b/webapp/models/Transfer.php @@ -13,7 +13,7 @@ class Transfer extends BaseModel { public static function find($txHash) { $row = SqlHelper::ormSelectOne( - myself()->_getSelfMysql(), + myself()->_getMarketMysql(), 't_transfer', array( 'txhash' => $txHash,