This commit is contained in:
aozhiwei 2024-04-29 11:33:23 +08:00
commit 5711719a6d
4 changed files with 4 additions and 31 deletions

View File

@ -633,7 +633,8 @@ class BaseAuthedController extends BaseController {
if (SERVER_ENV != _ONLINE) { if (SERVER_ENV != _ONLINE) {
return "${itemMeta['name']} Not enough stock:${lackItem['inventory']} need:${lackItem['item_num']}"; return "${itemMeta['name']} Not enough stock:${lackItem['inventory']} need:${lackItem['item_num']}";
} else { } else {
return "${itemMeta['name']} Not enough"; // return "${itemMeta['name']} Not enough";
return "item Not enough";
} }
} }

View File

@ -118,11 +118,7 @@ class MailController extends BaseAuthedController {
private static function getMailServerUrl() private static function getMailServerUrl()
{ {
if (SERVER_ENV != _ONLINE) { return MAIL_URL;
return "https://gamemail-test.kingsome.cn/webapp/index.php";
} else {
return "https://gamemail-test.cebggame.com/webapp/index.php";
}
} }
} }

View File

@ -248,17 +248,7 @@ class Gun extends BaseModel {
$lockType = $row['lock_type']; $lockType = $row['lock_type'];
$unlockTime = $row['unlock_time']; $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']);
}
}
}
$dto = array( $dto = array(

View File

@ -7,20 +7,6 @@ use phpcommon;
use phpcommon\SqlHelper; use phpcommon\SqlHelper;
class HeroPreset extends BaseModel { 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){ public static function getHeroPreset($heroUid){
$row = SqlHelper::ormSelectOne( $row = SqlHelper::ormSelectOne(