Commit 414192c9 authored by zhuwei's avatar zhuwei

1

parent 88c66cc1
...@@ -136,7 +136,7 @@ class Amercement extends Basic ...@@ -136,7 +136,7 @@ class Amercement extends Basic
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("101", $checkResult); return $this->response("101", $checkResult);
} }
$this->s_amercement->editAmercement($params['id'],$params['edit_type'],$this->userId);//int(1) $this->s_amercement->editAmercement($params['id'],$params,$params['edit_type'],$this->userId);//int(1)
return $this->response("200", "成功"); return $this->response("200", "成功");
} }
......
...@@ -276,16 +276,17 @@ class AmercementService ...@@ -276,16 +276,17 @@ class AmercementService
/** /**
* 更新数据 * 更新数据
* @param $id * @param $id
* @param $params
* @param $edit_type * @param $edit_type
* @param $operation_id * @param $operation_id
* @return bool * @return bool
*/ */
public function editAmercement($id, $edit_type,$operation_id) public function editAmercement($id,$params,$edit_type,$operation_id)
{ {
switch ($edit_type) { switch ($edit_type) {
case 0 : case 0 :
//0编辑 //0编辑
$this->updateAmercement($id); $this->updateAmercement($id,$params);
break; break;
case 1 : case 1 :
//1取消 //1取消
...@@ -303,9 +304,8 @@ class AmercementService ...@@ -303,9 +304,8 @@ class AmercementService
* @param $id * @param $id
* @return bool * @return bool
*/ */
public function updateAmercement($id) public function updateAmercement($id,$params)
{ {
$data = []; $data = [];
if ((isset($params['money'])) && ($params['money'] > 0)) if ((isset($params['money'])) && ($params['money'] > 0))
$data['money'] = $params['money']; $data['money'] = $params['money'];
......
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