Commit bf0f6ad8 authored by clone's avatar clone

1

parent b61a0373
...@@ -34,7 +34,7 @@ class AccountBalance extends Basic ...@@ -34,7 +34,7 @@ class AccountBalance extends Basic
if (count($data) <= 0) { if (count($data) <= 0) {
return $this->response("200", "null"); return $this->response("200", "null");
} }
$result["list"] = $data; $result["list"] = $data;
$result["total"] = $this->s_account_balance->getBalanceCount($params); $result["total"] = $this->s_account_balance->getBalanceCount($params);
return $this->response("200", "success!", $result); return $this->response("200", "success!", $result);
} }
...@@ -46,30 +46,30 @@ class AccountBalance extends Basic ...@@ -46,30 +46,30 @@ class AccountBalance extends Basic
public function check() public function check()
{ {
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"operator_id" => 1, "operator_id" => 1,
"operator_name" => "1231", "operator_name" => "1231",
"transfer_img" => "123123", "transfer_img" => "123123",
"status" => 1, "status" => 1,
"id" => 1 "id" => 1
);*/ );*/
if (empty($params["operator_id"]) || empty($params["operator_name"]) || empty($params["id"]) || empty($params["transfer_img"])) { if (empty($params["operator_id"]) || empty($params["operator_name"]) || empty($params["id"]) || empty($params["transfer_img"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
$id = $params["id"]; $id = $params["id"];
$operator_id = $params["operator_id"]; $operator_id = $params["operator_id"];
$operator_name = $params["operator_name"]; $operator_name = $params["operator_name"];
$transfer_img = $params["transfer_img"]; $transfer_img = $params["transfer_img"];
$status = $params["status"]; $status = $params["status"];
if (!$status && ($status != 1 || $status != 2)) { if (!$status && ($status != 1 || $status != 2)) {
return $this->response("101", "审核状态错误"); return $this->response("101", "审核状态错误");
} }
$id = $this->s_account_balance->check($id,$operator_id,$operator_name,$transfer_img,$status); $id = $this->s_account_balance->check($id, $operator_id, $operator_name, $transfer_img, $status);
if($id > 0){ if ($id > 0) {
return $this->response("200","success"); return $this->response("200", "success");
}else{ } else {
return $this->response("101","error"); return $this->response("101", "error");
} }
} }
......
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