bug修改
This commit is contained in:
@@ -188,9 +188,9 @@ class BlindBox extends adminApi
|
||||
if($type){
|
||||
$where['type'] = $type;
|
||||
}
|
||||
if($label){
|
||||
$where['label'] = $label;
|
||||
}
|
||||
// if($label){
|
||||
// $where['label'] = $label;
|
||||
// }
|
||||
$list = db::name("vs_gift")->where($where)->order('sort','asc')->select();
|
||||
$list_data = [];
|
||||
foreach ($list as $k=>$v){
|
||||
|
||||
@@ -34,6 +34,7 @@ class Monster extends Model
|
||||
$map = [];
|
||||
// $map[] = ['gid', 'not in', [36,37,38]];
|
||||
$map['type'] = ['=', 2];
|
||||
// $map['label'] = ['=', 18];
|
||||
$map['is_show'] = ['=',1];
|
||||
$map['delete_time'] = ['=', 0];
|
||||
$list = db::name('vs_gift')->where($map)->order('gift_price asc')->select();
|
||||
|
||||
Reference in New Issue
Block a user