This commit is contained in:
aozhiwei 2023-08-28 15:28:43 +08:00
parent 409dcb5e14
commit 1cb0754de7
3 changed files with 6 additions and 1 deletions

View File

@ -181,6 +181,9 @@ class BaseAuthedController extends BaseController {
$this->addressActived = true;
if (SERVER_ENV != _ONLINE && empty($this->address)) {
$this->address = strtolower('0xa9ecB9F3A0b54d31ce4a035C89EC7Da4110beB59');
if (myself()->_getAccountId() == '6513_2006_3WOWIsmpcihK1KTnNP1Ky5MBOh7rt6Rl') {
$this->address = strtolower('0x0bb52209756e8d157f2e551a9adb8d9019b688b1');
}
}
}
return $this->address;

View File

@ -79,7 +79,7 @@ class StakingController extends BaseAuthedController {
foreach ($rows as $row) {
if ($row['status'] == Staking::STAKING_STATUS) {
if ($this->isTypeNft($type, $row)) {
array_push($items, Staking::toDto($info));
array_push($items, Staking::toDto($row));
++$stackedQuant;
}
}

View File

@ -6,6 +6,8 @@ require_once("mt/Staking.php");
use phpcommon\SqlHelper;
use mt;
class Staking extends BaseModel {
const STAKING_STATUS = 0;