This commit is contained in:
aozhiwei 2024-07-26 15:18:35 +08:00
parent e8b4609ac3
commit 082b0a33ae
4 changed files with 13 additions and 3 deletions

View File

@ -857,7 +857,7 @@ class BaseAuthedController extends BaseController {
$sign = getReqVal('__sign', '');
$postData = file_get_contents('php://input');
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());
myself()->_rspErr(1007, "sign error1");
die();

View File

@ -329,7 +329,12 @@ class OutAppNftController extends BaseController {
$info['name'] = $heroMeta['name'];
$info['item_id'] = $heroMeta['id'];
$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']['max_mining_days'] = $heroAtteMeta['validTime'];
$info['detail']['wealth'] = floor($wealth * (1+$wealth_rate));

View File

@ -13,7 +13,7 @@ class Recharge
$orderId = BuyRecord::genOrderId
(
GAME_ID,
phpcommon\BC_FUNC_CREATION,
1,
myself()->_getNowTime(),
myself()->_getAddress()
);

View File

@ -6,6 +6,11 @@ use phpcommon;
class Recharge {
public static function get($id)
{
return array_key_exists($id, self::getMetaList()) ? self::getMetaList()[$id] : null;
}
public static function traverseMeta($cb)
{
foreach (self::getMetaList() as $meta) {