input('Country', ''); $list = DB::table('agent.dbo.admin_configs')->where('status', 1) ->where('country', $Country) ->whereIn('type', ['pay_method'])->orderByDesc('sort')->get(); }else { $list = DB::table('agent.dbo.admin_configs')->where('status', 1) ->whereIn('type', ['pay_method'])->orderByDesc('sort')->get(); } foreach ($list as &$value) { $value->type = 0; } unset($value); return apiReturnSuc($list); } }