1
This commit is contained in:
parent
409dcb5e14
commit
1cb0754de7
@ -181,6 +181,9 @@ class BaseAuthedController extends BaseController {
|
|||||||
$this->addressActived = true;
|
$this->addressActived = true;
|
||||||
if (SERVER_ENV != _ONLINE && empty($this->address)) {
|
if (SERVER_ENV != _ONLINE && empty($this->address)) {
|
||||||
$this->address = strtolower('0xa9ecB9F3A0b54d31ce4a035C89EC7Da4110beB59');
|
$this->address = strtolower('0xa9ecB9F3A0b54d31ce4a035C89EC7Da4110beB59');
|
||||||
|
if (myself()->_getAccountId() == '6513_2006_3WOWIsmpcihK1KTnNP1Ky5MBOh7rt6Rl') {
|
||||||
|
$this->address = strtolower('0x0bb52209756e8d157f2e551a9adb8d9019b688b1');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $this->address;
|
return $this->address;
|
||||||
|
@ -79,7 +79,7 @@ class StakingController extends BaseAuthedController {
|
|||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
if ($row['status'] == Staking::STAKING_STATUS) {
|
if ($row['status'] == Staking::STAKING_STATUS) {
|
||||||
if ($this->isTypeNft($type, $row)) {
|
if ($this->isTypeNft($type, $row)) {
|
||||||
array_push($items, Staking::toDto($info));
|
array_push($items, Staking::toDto($row));
|
||||||
++$stackedQuant;
|
++$stackedQuant;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,8 @@ require_once("mt/Staking.php");
|
|||||||
|
|
||||||
use phpcommon\SqlHelper;
|
use phpcommon\SqlHelper;
|
||||||
|
|
||||||
|
use mt;
|
||||||
|
|
||||||
class Staking extends BaseModel {
|
class Staking extends BaseModel {
|
||||||
|
|
||||||
const STAKING_STATUS = 0;
|
const STAKING_STATUS = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user