field($field)->where($condition)->order($order)->paginate(['list_rows'=>$pagesize,'query' => request()->param()],false); $this->page_info=$result; return $result->items(); }else{ return Db::name('membermsgsetting')->field($field)->where($condition)->order($order)->select()->toArray(); } } /** * 用户消息模板详细信息 * @access public * @author o1h.cn * @param array $condition 条件 * @param string $field 字段 * @return array */ public function getMembermsgsettingInfo($condition, $field = '*') { return Db::name('membermsgsetting')->field($field)->where($condition)->find(); } /** * 编辑用户消息模板 * @access public * @author o1h.cn * @param type $data 数据 * @return type */ public function addMembermsgsettingAll($data) { return Db::name('membermsgsetting')->insertAll($data); } }