yangsai@163.com 6 months ago
parent 6ddf6ba455
commit 91a08176d4
  1. 6
      application/controllers/Api/Remind.php

@ -19,6 +19,12 @@ class Api_RemindController extends Ctrl_Api{
if(!$RemindModel->insert($data)) Tool_Fnc::apiMsg('添加失败', '500');
Tool_Fnc::apiMsg('添加成功', '200');
}
public function getNoReadAction(){
$RemindModel = new RemindModel();
$uid= empty($this->POST['uid'])?Tool_Fnc::apiMsg('请先登录', '500'):$this->POST['uid'];
$list = $RemindModel->field("count(*) num")->where("is_delete=0 and user_id='{$uid}' and status=0")->fRow();
Tool_Fnc::apiMsg('获取成功', '200',$list);
}
public function getlistAction(){
$RemindModel = new RemindModel();
$uid= empty($this->POST['uid'])?Tool_Fnc::apiMsg('请先登录', '500'):$this->POST['uid'];

Loading…
Cancel
Save