|
@@ -66,7 +66,7 @@ class MineServices{
|
|
}
|
|
}
|
|
|
|
|
|
//获取矿区列表
|
|
//获取矿区列表
|
|
- public static function getAreaList($mine_code = '',$type = '')
|
|
|
|
|
|
+ public static function getAreaList($mine_code = '')
|
|
{
|
|
{
|
|
$result['status'] = true;
|
|
$result['status'] = true;
|
|
$result['msg'] = ApiEnum::RETURN_SUCCESS;
|
|
$result['msg'] = ApiEnum::RETURN_SUCCESS;
|
|
@@ -99,7 +99,8 @@ class MineServices{
|
|
$result['data'] = $mine_one;
|
|
$result['data'] = $mine_one;
|
|
} else {
|
|
} else {
|
|
$mine_one = [];
|
|
$mine_one = [];
|
|
- if($type == 'ningmei'){//获取宁煤子区域列表
|
|
|
|
|
|
+ $con = explode('jituan',$mine_code);
|
|
|
|
+ if(count($con) > 1){//获取宁煤子区域列表
|
|
$mine_id = MineList::where('slug', 'like', '%' . $mine_code . '%')->where('parent_id',968)->value('id');
|
|
$mine_id = MineList::where('slug', 'like', '%' . $mine_code . '%')->where('parent_id',968)->value('id');
|
|
foreach ($mine_list as $key => $val) {
|
|
foreach ($mine_list as $key => $val) {
|
|
if (isset($val['children'])) {
|
|
if (isset($val['children'])) {
|