1
This commit is contained in:
commit
5711719a6d
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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(
|
||||
|
@ -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