diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index d2a649338..d480eb7b7 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -2805,5 +2805,27 @@ function promote_listsMarket($type){ $data[$key] = $item; } + return $data; +} + +/** + * 聚合公司筛选项 + * @param $type 1 渠道 2 包名获取 + * @return mixed + */ +function getCpCompanySelect($type = 1){ + + $request['req'] = 1; + + if ($type == 1) { + $url = M("kv")->field("value")->where(['key'=>"cp_company_channel_api"])->find(); + $data = json_decode(curl_post($url['value'],$request),true); + } elseif($type == 2) { + $url = M("kv")->field("value")->where(['key'=>"cp_company_gamename_api"])->find(); + $data = json_decode(curl_post($url['value'],$request),true); + } else { + return []; + } + return $data; } \ No newline at end of file