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) {
return "${itemMeta['name']} Not enough stock:${lackItem['inventory']} need:${lackItem['item_num']}";
} 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()
{
if (SERVER_ENV != _ONLINE) {
return "https://gamemail-test.kingsome.cn/webapp/index.php";
} else {
return "https://gamemail-test.cebggame.com/webapp/index.php";
}
return MAIL_URL;
}
}

View File

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

View File

@ -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(