From 4325ed23ee6f15ab41081a61e8d34c85feef895a Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 24 Jul 2020 09:21:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=9A=E5=90=88=E5=85=AC=E5=8F=B8=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E8=AF=A6=E7=BB=86=E7=BD=91=E5=9D=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/CpJuheCompanyController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();