1
This commit is contained in:
parent
03a885cc90
commit
4431ae58ee
@ -153,11 +153,11 @@ class InGameMallController extends BaseAuthedController {
|
||||
'ignore_empty' => true,
|
||||
'custom_func' => function () use ($queryData) {
|
||||
$typeFilter = $queryData['type_filter'];
|
||||
// if ($typeFilter >= 5){
|
||||
// return "AND (order_type >= 5)";
|
||||
// }else{
|
||||
if ($typeFilter == 1){
|
||||
return "AND (order_type = 1) OR (order_type = 4)";
|
||||
}else{
|
||||
return "AND (order_type = '${typeFilter}')";
|
||||
// }
|
||||
}
|
||||
}
|
||||
),
|
||||
)
|
||||
@ -710,7 +710,7 @@ EOD;
|
||||
|
||||
private function _getGoodsType($itemMeta){
|
||||
if (!$itemMeta){
|
||||
return ;
|
||||
return 0;
|
||||
}
|
||||
switch ($itemMeta['type']){
|
||||
case \mt\Item::HERO_SKIN_TYPE : {
|
||||
@ -720,7 +720,13 @@ EOD;
|
||||
return InGameMall::CHIP_TYPE;
|
||||
}
|
||||
case \mt\Item::FRAGMENT_TYPE : {
|
||||
return InGameMall::HERO_FRAGMENT_TYPE;
|
||||
if ($itemMeta['sub_type'] == \mt\Item::HERO_FRAGMENT_SUBTYPE){
|
||||
return InGameMall::HERO_FRAGMENT_TYPE;
|
||||
}elseif ($itemMeta['sub_type'] == \mt\Item::SKIN_FRAGMENT_SUBTYPE){
|
||||
return InGameMall::SKIN_FRAGMENT_TYPE;
|
||||
}else{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
case \mt\Item::BATTLE_REWARD_BOX : {
|
||||
return InGameMall::OTHER_TYPE;
|
||||
|
@ -13,6 +13,7 @@ class InGameMall extends BaseModel {
|
||||
const HERO_SKIN_TYPE = 1;
|
||||
const CHIP_TYPE = 2;
|
||||
const HERO_FRAGMENT_TYPE = 3;
|
||||
const SKIN_FRAGMENT_TYPE = 4;
|
||||
const OTHER_TYPE = 11;
|
||||
|
||||
const SYSTEM_MALL_ACCOUNT = "kingsome";
|
||||
|
@ -124,6 +124,7 @@ class Item {
|
||||
|
||||
const HERO_FRAGMENT_SUBTYPE = 1;
|
||||
const CHIP_FRAGMENT_SUBTYPE = 2;
|
||||
const SKIN_FRAGMENT_SUBTYPE = 4;
|
||||
|
||||
|
||||
public static function get($id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user