Commit c1de1785 authored by hujun's avatar hujun

1

parent a7b260fd
...@@ -79,12 +79,28 @@ class DailyPaper extends Basic ...@@ -79,12 +79,28 @@ class DailyPaper extends Basic
"pos" => "777",//pos机 "pos" => "777",//pos机
"other_bank" => "888"//其他 "other_bank" => "888"//其他
);*/ );*/
if (empty($params["agent_id"]) || empty($params["agent_name"]) || empty($params["daily_date"]) || // if (empty($params["agent_id"]) || empty($params["agent_name"]) || empty($params["daily_date"]) ||
!isset($params["alipay"]) || !isset($params["tenpay"]) || !isset($params["realty_pay"]) || // !isset($params["alipay"]) || !isset($params["tenpay"]) || !isset($params["realty_pay"]) ||
!isset($params["family_pay"]) || !isset($params["private_bank"]) || !isset($params["cash"]) || // !isset($params["family_pay"]) || !isset($params["private_bank"]) || !isset($params["cash"]) ||
!isset($params["pos"]) || !isset($params["other_bank"]) || !isset($params['site_id']) // !isset($params["pos"]) || !isset($params["other_bank"]) || !isset($params['site_id'])
) { // ) {
return $this->response("101", "请求参数错误"); // return $this->response("101", "请求参数错误");
// }
if ($this->siteId == 10001) {
if (empty($params["agent_id"]) || empty($params["agent_name"]) || empty($params["daily_date"]) ||
!isset($params["alipay"]) || !isset($params["tenpay"]) || !isset($params["realty_pay"]) ||
!isset($params["family_pay"]) || !isset($params["private_bank"]) || !isset($params["cash"]) ||
!isset($params["pos"]) || !isset($params["other_bank"])
) {
return $this->response("101", "请求参数错误");
}
} else {
if (empty($params["agent_id"]) || empty($params["agent_name"]) || empty($params["daily_date"]) ||
!isset($params["alipay"]) || !isset($params["tenpay"]) || !isset($params['bank_card'])
) {
return $this->response("101", "请求参数错误");
}
} }
$agent_id = $params["agent_id"]; $agent_id = $params["agent_id"];
......
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