dever 4 yıl önce
ebeveyn
işleme
640e5e2970
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      app/collection/lib/Core.php
  2. 1 1
      config/base.php

+ 1 - 1
app/collection/lib/Core.php

@@ -38,7 +38,7 @@ class Core
     {
     	# 获取当前的用户信息
         $this->token = Dever::input('token');
-        $this->uid = 1;
+        $this->uid = Dever::load('passport/user')->check(false);
         $this->checkCode();
         $this->user = $this->getUser($this->uid, $this->id);
         $this->user['id'] = $this->uid;

+ 1 - 1
config/base.php

@@ -1,7 +1,7 @@
 <?php
 $config['base'] = array
 (
-	'name' => '幻境',
+	'name' => '合小记',
 	'version' => '1.0.0 Beta',
 
     # 设置分类组件中的栏目下的分类为系统使用的主分类