From 8f9cbbf6bbc66c3b074bc40a3780175bcba2c539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sat, 28 Oct 2023 16:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9D=90=E5=B8=AD=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/called/controller/Index.php | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 app/called/controller/Index.php diff --git a/app/called/controller/Index.php b/app/called/controller/Index.php new file mode 100644 index 0000000..9bf1377 --- /dev/null +++ b/app/called/controller/Index.php @@ -0,0 +1,43 @@ + '河南api', + 'passwd' => md5('qq123656'), + ]; + $login_data = json_decode(linkcurl('https://yunyuzhineng.cn:8888/login','POST',$login_info,$header_login,0)); + + $header = [ + 'access_token:'.$login_data->data->access_token, + ]; + + $param = [ + 'startd' =>isset($time_data['time'][0])?date('Y-m-d',strtotime($time_data['time'][0])):'', + 'endd'=>isset($time_data['time'][1])?date('Y-m-d',strtotime($time_data['time'][1])):'', + 'page'=>"1", + 'limit' =>"10", + 'admin_id' => 0 + + ]; + + if (isset($time_data['time'][0])) { + $url = 'https://yunyuzhineng.cn:8888/admin/cdr/agent_report'; + } + + $data = json_decode(linkcurl($url,'POST',$param,$header,0))->data; + + \result($data,'',30000); + } + +} \ No newline at end of file