|
|
@ -49,7 +49,7 @@ class Api_RemindController extends Ctrl_Api{ |
|
|
|
$id= empty($this->POST['id'])?Tool_Fnc::apiMsg('待办ID缺失', '500'):$this->POST['id']; |
|
|
|
$id= empty($this->POST['id'])?Tool_Fnc::apiMsg('待办ID缺失', '500'):$this->POST['id']; |
|
|
|
$status = $RemindModel->field('status')->where("id={$id} and user_id={$uid}")->fRow(); |
|
|
|
$status = $RemindModel->field('status')->where("id={$id} and user_id={$uid}")->fRow(); |
|
|
|
$data['id'] = $id; |
|
|
|
$data['id'] = $id; |
|
|
|
$data['status'] = $status==0?"1":0; |
|
|
|
$data['status'] = $status['status']==0?"1":0; |
|
|
|
if(!$RemindModel->update($data)) Tool_Fnc::apiMsg('设置失败', '500'); |
|
|
|
if(!$RemindModel->update($data)) Tool_Fnc::apiMsg('设置失败', '500'); |
|
|
|
Tool_Fnc::apiMsg('设置成功', '200'); |
|
|
|
Tool_Fnc::apiMsg('设置成功', '200'); |
|
|
|
} |
|
|
|
} |
|
|
|