yangsai@163.com 5 months ago
parent 519ef1464d
commit 4044c9e443
  1. 2
      application/controllers/Api/Remind.php

@ -49,7 +49,7 @@ class Api_RemindController extends Ctrl_Api{
$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();
$data['id'] = $id;
$data['status'] = $status==0?"1":0;
$data['status'] = $status['status']==0?"1":0;
if(!$RemindModel->update($data)) Tool_Fnc::apiMsg('设置失败', '500');
Tool_Fnc::apiMsg('设置成功', '200');
}

Loading…
Cancel
Save