From 4044c9e443179ecf29d123d31d71972820cf6938 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Mon, 1 Jul 2024 15:57:59 +0800 Subject: [PATCH] YS --- application/controllers/Api/Remind.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Api/Remind.php b/application/controllers/Api/Remind.php index ce43328..cd5f6ec 100644 --- a/application/controllers/Api/Remind.php +++ b/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'); }