From 341fa19b6faaa2abd74b5f4153dffaa255ca978e Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 22 Jul 2020 14:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=9A=E5=90=88=E5=85=AC=E5=8F=B8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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