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