1
This commit is contained in:
commit
3d401c9042
@ -684,8 +684,6 @@ class Hero extends BaseModel {
|
||||
myself()->_getNowDaySeconds()) {
|
||||
$todayPveGetCeg = 0;
|
||||
}
|
||||
|
||||
$heroLucky = \services\FormulaService::Hero_Advanced_Lucky_Value($row['quality']);
|
||||
$info = array(
|
||||
'idx' => $row['idx'],
|
||||
'token_id' => $row['token_id'],
|
||||
@ -699,15 +697,8 @@ class Hero extends BaseModel {
|
||||
'current_pvp_get_ceg' => $todayGetGold / 100,
|
||||
'current_pve_get_ceg' => $todayPveGetCeg / 100,
|
||||
'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;
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ class ShopBuyGoodsDirect
|
||||
|
||||
$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) {
|
||||
$this->_rspErr(2, "order not found: {$order_id}");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user