Commit 5ef29d25 authored by clone's avatar clone

bug

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