// +---------------------------------------------------------------------- namespace App\Models; /** * 反馈建议管理-模型 * @author wesmiler * @since 2020/11/11 * Class AdviceModel * @package App\Models */ class AdviceModel extends BaseModel { // 设置数据表 protected $table = 'advices'; /** * 获取记录信息 * @param int $id 记录ID * @return array|string * @author wesmiler * @since 2020/11/11 */ public function getInfo($id) { $info = parent::getInfo($id); // TODO: Change the autogenerated stub if ($info) { // 图片 if ($info['thumb']) { $info['thumb'] = get_image_url($info['thumb']); } if(isset($info['result'])){ $info['result'] = str_replace("\n","
", $info['result']); } } return $info; } }