<?php /** * 【下载中心-后台】获取下载中心搜索列表 * @author: heyuelong * @email: 271608475@qq.com * @date : 2018年4月18日11:12:18 * @version $Id$ */ namespace Apicp\Controller\Down; use Common\Common\Helper; use Common\Service\DownloadService; class ReadController extends \Apicp\Controller\AbstractController { public function Index_post() { // 实例化DownLoadService $service = new DownloadService(); // 组装查询条件 $conds = [ 'ea_id' => $this->_login->user['eaId'], 'read' => Helper::UN_READ ]; // 更新未读为已读 $service->update_by_conds($conds, ['read' => Helper::READ]); $this->_result = []; return true; } }