聚合公司功能提交

master
zhengyongxing 5 years ago
parent 2fe7c864df
commit 341fa19b6f

@ -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;
}
Loading…
Cancel
Save