1、解决doc标签bug(零时)

2、手机站点的开关设置
This commit is contained in:
2017-01-01 08:27:49 +08:00
parent ffab826db0
commit c7bdf42447
3 changed files with 6 additions and 3 deletions

View File

@@ -71,6 +71,9 @@ class Document extends Base{
}
public function extend($name){
if (is_numeric($name)) {
$name = db('Model')->where('id', $name)->value('name');
}
$this->extend_db = db('Document' . ucfirst($name));
$name = strtoupper($name);
//$this->join('__DOCUMENT_' . $name . '__', $this->fk . '=' . $this->pk, 'LEFT');