1
This commit is contained in:
parent
2b0759ca43
commit
a18bc42a28
@ -248,18 +248,8 @@ class Gun extends BaseModel {
|
||||
$lockType = $row['lock_type'];
|
||||
$unlockTime = $row['unlock_time'];
|
||||
}
|
||||
$heroIds =array();
|
||||
|
||||
{
|
||||
$heroIds =array();
|
||||
$list = HeroPreset::getByGunUid($row['idx']);
|
||||
if ($list){
|
||||
foreach ($list as $value){
|
||||
$heroDb = Hero::find($value['hero_uid']);
|
||||
array_push($heroIds,$heroDb['hero_id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
error_log('callstack:' . json_encode(debug_backtrace(), JSON_PRETTY_PRINT));
|
||||
|
||||
$dto = array(
|
||||
'idx' => $row['idx'],
|
||||
|
@ -7,20 +7,6 @@ use phpcommon;
|
||||
use phpcommon\SqlHelper;
|
||||
|
||||
class HeroPreset extends BaseModel {
|
||||
public static function getByGunUid($weapon_uid){
|
||||
$rows = SqlHelper::ormSelect(
|
||||
myself()->_getSelfMysql(),
|
||||
't_hero_preset',
|
||||
array(
|
||||
'account_id' => myself()->_getAccountId(),
|
||||
'weapon_uid1' => $weapon_uid,
|
||||
)
|
||||
);
|
||||
if (!$rows){
|
||||
return null;
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
|
||||
public static function getHeroPreset($heroUid){
|
||||
$row = SqlHelper::ormSelectOne(
|
||||
|
Loading…
x
Reference in New Issue
Block a user