diff --git a/Application/Admin/Controller/CpJuheCompanyController.class.php b/Application/Admin/Controller/CpJuheCompanyController.class.php index 6fc9d3259..1b535a326 100644 --- a/Application/Admin/Controller/CpJuheCompanyController.class.php +++ b/Application/Admin/Controller/CpJuheCompanyController.class.php @@ -83,8 +83,8 @@ class CpJuheCompanyController extends ThinkController { public function detail() { $_REQUEST['id']?($request['id'] = $_REQUEST['id']):''; - - $data = json_decode(curl_post("http://10.0.1.161:8095/index.php?g=Api&m=CpJuheCompany&a=detail",$request),true); + $url = M("kv")->field("value")->where(['key'=>"cp_company_api"])->find(); + $data = json_decode(curl_post($url['value'],$request),true); $this->assign("data",$data); $this->display();