order('type asc')->select(); return $list; } /** * 编辑 * @author Michael_xu * @return */ public function updateDataById($param, $id) { $data = []; $data['status'] = $param['status'] ? : '0'; if ($this->where(['id' => $id])->update($data)) { return true; } $this->error = '操作失败'; return false; } }