Commit 95089fee authored by clone's avatar clone

成交详情 bug

parent b687e857
......@@ -1149,7 +1149,7 @@ class OrderLogService
return $cent_commissions;
} else {
$item = $params[0];
$agent_id = $params[0]["agent_id"];
$role = !empty($params[0]["role"]) ? $params[0]["role"] : $params[0]["roles"];
$cent_commission["id"] = $item["id"];
$cent_commission["agent_id"] = $item["agent_id"];
......@@ -1164,7 +1164,7 @@ class OrderLogService
$length = count($params);
for ($j = 0; $j < $length; $j++) {
$value = $params[$j];
if ($value["agent_id"] == $agent_id) {
if ($value["role"] == $role || $value["roles"] == $role) {
$arr["real_fee"] = $value["real_fee"];
$arr["create_time"] = $value["create_time"];
$arr["confirm_date"] = $value["confirm_date"];
......
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