['>', $version], 'type' => $type]; $cinfo = $m_v->getList($where, '*', 1, 1, 'id desc', '', true); if (empty($cinfo)) { return backarr(0, "无数据"); } return backarr(1, "操作成功", $cinfo); } /** * 获取最新根据code * 20211224 * wj */ public function getinfobycode($arr) { $type = 1; if (isset($arr['type']) && !empty($arr['type'])) { $type = $arr['type']; } $m_v = new versionmodel(); $where = ['type' => $type]; $cinfo = $m_v->getList($where, '*', 1, 1, 'id desc', '', true); if (empty($cinfo)) { return backarr(0, "无数据"); } return backarr(1, "操作成功", $cinfo); } }