1
This commit is contained in:
parent
e8b4609ac3
commit
082b0a33ae
@ -857,7 +857,7 @@ class BaseAuthedController extends BaseController {
|
|||||||
$sign = getReqVal('__sign', '');
|
$sign = getReqVal('__sign', '');
|
||||||
$postData = file_get_contents('php://input');
|
$postData = file_get_contents('php://input');
|
||||||
if (intval($timeStamp) < myself()->_getNowTime() - 20 ||
|
if (intval($timeStamp) < myself()->_getNowTime() - 20 ||
|
||||||
intval($timeStamp) < myself()->_getNowTime() + 10) {
|
intval($timeStamp) > myself()->_getNowTime() + 10) {
|
||||||
error_log('safeApiVerify timestamp error:' . $timeStamp . ' nowTime:' . myself()->_getNowTime());
|
error_log('safeApiVerify timestamp error:' . $timeStamp . ' nowTime:' . myself()->_getNowTime());
|
||||||
myself()->_rspErr(1007, "sign error1");
|
myself()->_rspErr(1007, "sign error1");
|
||||||
die();
|
die();
|
||||||
|
@ -329,7 +329,12 @@ class OutAppNftController extends BaseController {
|
|||||||
$info['name'] = $heroMeta['name'];
|
$info['name'] = $heroMeta['name'];
|
||||||
$info['item_id'] = $heroMeta['id'];
|
$info['item_id'] = $heroMeta['id'];
|
||||||
$info['type'] = $nftDb['token_type'];
|
$info['type'] = $nftDb['token_type'];
|
||||||
$info['image'] = 'https://res2.counterfire.games/nft/meta/' . $heroMeta['id'] . '_' . $this->getRealHeroQuality($heroDb) . '.gif';
|
//$info['image'] = 'https://res2.counterfire.games/nft/meta/' . $heroMeta['id'] . '_' . $this->getRealHeroQuality($heroDb) . '.gif';
|
||||||
|
if (($nftDb['token_type']) == Nft::GCARD_HERO_TYPE) {
|
||||||
|
$info['image'] = 'https://res2.counterfire.games/nft/video/normal/' . $heroMeta['id'] . '_' . $this->getRealHeroQuality($heroDb) . '.mp4';
|
||||||
|
} else {
|
||||||
|
$info['image'] = 'https://res2.counterfire.games/nft/video/genesis/' . $heroMeta['id'] . '_' . $this->getRealHeroQuality($heroDb) . '.mp4';
|
||||||
|
}
|
||||||
$info['detail']['quality'] = $this->getRealHeroQuality($heroDb);
|
$info['detail']['quality'] = $this->getRealHeroQuality($heroDb);
|
||||||
$info['detail']['max_mining_days'] = $heroAtteMeta['validTime'];
|
$info['detail']['max_mining_days'] = $heroAtteMeta['validTime'];
|
||||||
$info['detail']['wealth'] = floor($wealth * (1+$wealth_rate));
|
$info['detail']['wealth'] = floor($wealth * (1+$wealth_rate));
|
||||||
|
@ -13,7 +13,7 @@ class Recharge
|
|||||||
$orderId = BuyRecord::genOrderId
|
$orderId = BuyRecord::genOrderId
|
||||||
(
|
(
|
||||||
GAME_ID,
|
GAME_ID,
|
||||||
phpcommon\BC_FUNC_CREATION,
|
1,
|
||||||
myself()->_getNowTime(),
|
myself()->_getNowTime(),
|
||||||
myself()->_getAddress()
|
myself()->_getAddress()
|
||||||
);
|
);
|
||||||
|
@ -6,6 +6,11 @@ use phpcommon;
|
|||||||
|
|
||||||
class Recharge {
|
class Recharge {
|
||||||
|
|
||||||
|
public static function get($id)
|
||||||
|
{
|
||||||
|
return array_key_exists($id, self::getMetaList()) ? self::getMetaList()[$id] : null;
|
||||||
|
}
|
||||||
|
|
||||||
public static function traverseMeta($cb)
|
public static function traverseMeta($cb)
|
||||||
{
|
{
|
||||||
foreach (self::getMetaList() as $meta) {
|
foreach (self::getMetaList() as $meta) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user