|
@@ -13,7 +13,9 @@ class Core
|
|
public function __construct()
|
|
public function __construct()
|
|
{
|
|
{
|
|
$this->uid = Dever::load('passport/user')->check(false);
|
|
$this->uid = Dever::load('passport/user')->check(false);
|
|
- $this->uid = 1;
|
|
|
|
|
|
+ if (!$this->uid) {
|
|
|
|
+ $this->uid = 1;
|
|
|
|
+ }
|
|
if ($this->uid) {
|
|
if ($this->uid) {
|
|
$this->user = Dever::load('passport/api')->info($this->uid);
|
|
$this->user = Dever::load('passport/api')->info($this->uid);
|
|
} else {
|
|
} else {
|