Commit 5ef29d25 authored by clone's avatar clone

bug

parent e03bfe12
......@@ -127,28 +127,23 @@ class Report extends Basic
);*/
$auth_arr = [
'broker/report',
'broker/addFollowUp',
/*'broker/report',
'broker/addFollowUp',*/
'broker/marchIn',
'broker/collectingBill',
'broker/refund',
'broker/bargain',
'broker/statusBargain',
/* 'broker/statusBargain',*/
];
$param["name"] = array( "in", $auth_arr );
$agents = new AAgents();
$is_auth = $agents->agentsAuthIds($params["agent_id"], $param);
$result["report"] = $result["addFollowUp"] = $result["marchIn"] = $result["collectingBill"] = $result["refund"]
= $result["bargain"] = $result["statusBargain"] = false;
/* $result["report"] = $result["addFollowUp"] = $result["statusBargain"] =*/
$result["marchIn"] = $result["collectingBill"] = $result["refund"]
= $result["bargain"] = false;
if (count($is_auth) > 0) {
foreach ($is_auth as $item) {
if ($item['name'] == "broker/report") {
$result["report"] = true;
}
if ($item['name'] == "broker/addFollowUp") {
$result["addFollowUp"] = true;
}
if ($item['name'] == "broker/marchIn") {
$result["marchIn"] = true;
}
......@@ -161,9 +156,6 @@ class Report extends Basic
if ($item['name'] == "broker/bargain") {
$result["bargain"] = true;
}
if ($item['name'] == "broker/statusBargain") {
$result["statusBargain"] = true;
}
}
return $this->response("200", "request success", $result);
}
......
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