Commit 11ac93d6 authored by zhuwei's avatar zhuwei

收款列表优化2

parent b2a093bf
...@@ -115,11 +115,14 @@ class Collection extends Basic ...@@ -115,11 +115,14 @@ class Collection extends Basic
if(!isset($params["collection_id"]) || $params["collection_id"] <= 0){ if(!isset($params["collection_id"]) || $params["collection_id"] <= 0){
return $this->response("101","请求参数错误"); return $this->response("101","请求参数错误");
} }
if(!isset($params["real_money"]) || $params["real_money"] <= 0){ if((!isset($params["real_money"]) || $params["real_money"] <= 0) and (!isset($params["transaction_fee"]) || $params["transaction_fee"] <= 0)){
return $this->response("101","请求参数错误"); return $this->response("101","请求参数错误");
} }
$where_["id"] = $params["collection_id"]; $where_["id"] = $params["collection_id"];
$where_["real_money"] = $params["real_money"];
if(!isset($params["real_money"]) || $params["real_money"] <= 0){
$where_["real_money"] = $params["real_money"];
}
if(!isset($params["transaction_fee"]) || $params["transaction_fee"] <= 0){ if(!isset($params["transaction_fee"]) || $params["transaction_fee"] <= 0){
$where_["transaction_fee"] = $params["transaction_fee"]; $where_["transaction_fee"] = $params["transaction_fee"];
......
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