Commit 1277ba35 authored by zw's avatar zw

bug

parent 2b82c6eb
......@@ -420,13 +420,15 @@ class PerformanceService
}
/**
* 组装请求参数
/**组装请求参数
* @param $agent_id
* @param $type
* @param $start_time
* @param $end_time
* @return array
* @return null
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
private function getAgentId($agent_id, $type, $start_time, $end_time)
{
......@@ -437,12 +439,12 @@ class PerformanceService
break;
case 2:
$verify = new VerifyService();
$agent_ids = $verify->getAgentsByAgentId($agent_id);
$agent_ids = $verify->getAgentsByAgentIdAndStatus($agent_id);
$params["agent_id"] = array( "in", $agent_ids );
break;
case 3:
$verify = new VerifyService();
$agent_ids = $verify->getAgentsByAgentId($agent_id);
$agent_ids = $verify->getAgentsByAgentIdAndStatus($agent_id);
$params["agent_id"] = array( "in", $agent_ids );
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment