AttachmentModel.class.php
577 Bytes
<?php
/**
* Created by PhpStorm.
* User: Dell
* Date: 2018/9/5
* Time: 9:47
*/
namespace Common\Model;
use Common\Common\Constant;
class AttachmentModel extends AbstractModel
{
/**
* 构造方法
* AttachmentModel constructor.
*/
public function __construct()
{
parent::__construct();
}
/**
* @param $mid:留言ID
* @return array
*/
public function get_detail($mid)
{
$sql = " SELECT a_path FROM luoyanshou_attachment WHERE a_mid = {$mid} ";
return $this->_m->fetch_row($sql);
}
}