1
This commit is contained in:
parent
8e3c235b91
commit
1f0d7a97bf
@ -174,7 +174,7 @@ class Gun extends BaseModel {
|
|||||||
'lock_type' => $lockType,
|
'lock_type' => $lockType,
|
||||||
'unlock_time' => $unlockTime,
|
'unlock_time' => $unlockTime,
|
||||||
'unlock_lefttime' => max(0,
|
'unlock_lefttime' => max(0,
|
||||||
$unlockTime - myself()->_getNowDaySeconds()),
|
$unlockTime - myself()->_getNowTime()),
|
||||||
'unlock_trade_time' => $row['unlock_trade_time'],
|
'unlock_trade_time' => $row['unlock_trade_time'],
|
||||||
);
|
);
|
||||||
$dto['ceg_uplimit'] = FormulaService::getWeaponPvpDailyCegUpLimit($dto);
|
$dto['ceg_uplimit'] = FormulaService::getWeaponPvpDailyCegUpLimit($dto);
|
||||||
|
@ -50,7 +50,7 @@ class Hero extends BaseModel {
|
|||||||
$row['hero_uniid'] = $row['idx'];
|
$row['hero_uniid'] = $row['idx'];
|
||||||
if ($row['account_id'] != $accountId) {
|
if ($row['account_id'] != $accountId) {
|
||||||
$openId = phpcommon\extractOpenId($accountId);
|
$openId = phpcommon\extractOpenId($accountId);
|
||||||
if (!NftService::isHeroOwner($opneId, $row['token_id'])) {
|
if (!NftService::isHeroOwner($openId, $row['token_id'])) {
|
||||||
$row = null;
|
$row = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -120,6 +120,7 @@ class Hero extends BaseModel {
|
|||||||
|
|
||||||
public static function toDto($row)
|
public static function toDto($row)
|
||||||
{
|
{
|
||||||
|
error_log(json_encode($row));
|
||||||
$attr = emptyReplace(json_decode($row['rand_attr'], true), array());
|
$attr = emptyReplace(json_decode($row['rand_attr'], true), array());
|
||||||
$lockType = 0;
|
$lockType = 0;
|
||||||
$unlockTime = 0;
|
$unlockTime = 0;
|
||||||
@ -163,7 +164,7 @@ class Hero extends BaseModel {
|
|||||||
'lock_type' => $lockType,
|
'lock_type' => $lockType,
|
||||||
'unlock_time' => $unlockTime,
|
'unlock_time' => $unlockTime,
|
||||||
'unlock_lefttime' => max(0,
|
'unlock_lefttime' => max(0,
|
||||||
$unlockTime - myself()->_getNowDaySeconds()),
|
$unlockTime - myself()->_getNowTime()),
|
||||||
'today_get_gold' => $todayGetGold,
|
'today_get_gold' => $todayGetGold,
|
||||||
'last_get_gold_time' => $lastGetGoldTime,
|
'last_get_gold_time' => $lastGetGoldTime,
|
||||||
'today_pve_get_ceg' => $todayPveGetCeg,
|
'today_pve_get_ceg' => $todayPveGetCeg,
|
||||||
|
@ -600,7 +600,7 @@ class MissionService extends BaseService {
|
|||||||
foreach ($this->offerRewartdMission['missions'] as $mission) {
|
foreach ($this->offerRewartdMission['missions'] as $mission) {
|
||||||
if ($mission['mission_id'] == $missionDto['mission_id']) {
|
if ($mission['mission_id'] == $missionDto['mission_id']) {
|
||||||
if ($mission['sendtime'] > 0) {
|
if ($mission['sendtime'] > 0) {
|
||||||
$leftTime = max(0, ($mission['sendtime'] + $missionMeta['time'] + 1000)-myself()->_getNowTime());
|
$leftTime = max(0, ($mission['sendtime'] + $missionMeta['time'])-myself()->_getNowTime());
|
||||||
$missionDto['lefttime'] = $leftTime;
|
$missionDto['lefttime'] = $leftTime;
|
||||||
if ($leftTime <= 0) {
|
if ($leftTime <= 0) {
|
||||||
$missionDto['state'] = 0;
|
$missionDto['state'] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user