This commit is contained in:
aozhiwei 2023-07-19 11:36:00 +08:00
commit 3d401c9042
2 changed files with 2 additions and 11 deletions

View File

@ -684,8 +684,6 @@ class Hero extends BaseModel {
myself()->_getNowDaySeconds()) { myself()->_getNowDaySeconds()) {
$todayPveGetCeg = 0; $todayPveGetCeg = 0;
} }
$heroLucky = \services\FormulaService::Hero_Advanced_Lucky_Value($row['quality']);
$info = array( $info = array(
'idx' => $row['idx'], 'idx' => $row['idx'],
'token_id' => $row['token_id'], 'token_id' => $row['token_id'],
@ -699,15 +697,8 @@ class Hero extends BaseModel {
'current_pvp_get_ceg' => $todayGetGold / 100, 'current_pvp_get_ceg' => $todayGetGold / 100,
'current_pve_get_ceg' => $todayPveGetCeg / 100, 'current_pve_get_ceg' => $todayPveGetCeg / 100,
'advanced_count' => $row['advanced_count'], 'advanced_count' => $row['advanced_count'],
'lucky' => strval($heroLucky),
'chip_ids' => $row['chip_ids'],
'chip_strength_sum' => strval(Chip::getChipMaxStrength($row['chip_ids'],1)), //计算ceg上限所需参数
'skill_points' => $row['skill_points'],
'labour' => $row['labour'],
); );
$info['hero_tili_max'] = strval(round(FormulaService::Hero_NFT_Maximum_Physical_Strength($info['quality'],$info['lucky']),3));
$info['pvp_ceg_uplimit'] =strval( round(FormulaService::getHeroPvpDailyCegUpLimit($info),2) );
$info['pve_ceg_uplimit'] = strval( round(FormulaService::getHeroPveDailyCegUpLimit($info),2) );
return $info; return $info;
} }

View File

@ -68,7 +68,7 @@ class ShopBuyGoodsDirect
$conn = myself()->_getMysql(''); $conn = myself()->_getMysql('');
$order = SqlHelper::selectOne($conn, 't_shop_buy_order', array('address', 'id', 'item_id', 'goods_num', 'status'), array('idx' => $order_id)); $order = SqlHelper::selectOne($conn, 't_shop_buy_order', array('address', 'id', 'item_id', 'goods_num', 'status'), array('order_id' => $order_id));
if (!$order) { if (!$order) {
$this->_rspErr(2, "order not found: {$order_id}"); $this->_rspErr(2, "order not found: {$order_id}");
return; return;