<?php /** * 配置表信息 * User: 代军 * Date: 2017-04-24 */ namespace Common\Model; class SettingModel extends AbstractModel { /** * 构造方法 */ public function __construct() { parent::__construct(); } /** * 执行自定义查询SQL语句(安装应用回调时用) * * @author 侯英才 * @param string $sql 执行的SQL语句 * * @return mixed */ public function query($sql) { $res = $this->_m->query($sql); return $res; } /** * 执行自定义非查询SQL语句(安装应用回调时用) * * @author 侯英才 * @param string $sql 执行的SQL语句 * * @return mixed */ public function execute($sql) { $res = $this->_m->execute($sql); return $res; } }