内核更新

bug修复
This commit is contained in:
2016-10-02 11:50:36 +08:00
parent 7608d4d0f7
commit a70c700b04
27 changed files with 201 additions and 141 deletions

View File

@@ -34,9 +34,6 @@ class User extends Base {
array('title' => '密码修改', 'url' => 'user/profile/editpw', 'icon' => 'key'),
array('title' => '更换头像', 'url' => 'user/profile/avatar', 'icon' => 'male'),
);
$menu['订单管理'] = array(
array('title' => '我的订单', 'url' => 'user/order/index', 'icon' => 'shopping-bag'),
);
$contetnmenu = $this->getContentMenu();
if (!empty($contetnmenu)) {
$menu['内容管理'] = $contetnmenu;

View File

@@ -73,7 +73,7 @@ class Document extends \think\model\Merge{
if (is_numeric($name)) {
$name = db('model')->where(array('id'=>$name))->value('name');
}
self::$relationModel = array('document_' . $name);
$this->relationModel = array('document_' . $name);
return $this;
}