Commit bf0f6ad8 authored by clone's avatar clone

1

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