dever 6 years ago
parent
commit
579c836880
1 changed files with 4 additions and 8 deletions
  1. 4 8
      service/src/Data.php

+ 4 - 8
service/src/Data.php

@@ -73,14 +73,12 @@ class Data
         $this->data = Dever::load('passport/user')->data();
         if (!$this->data) {
             $url = Dever::url('home', 'service');
-            //Dever::location($url);
-            //return;
+            Dever::location($url);
+            return;
         } else {
             $this->data['uid'] = $this->data['id'];
         }
 
-        $this->data['uid'] = 4;
-
         $type = 4;
 
         $scene = Dever::login($this->data['uid']) . ',' . $type . ',' . $id;
@@ -137,14 +135,12 @@ class Data
         $this->data = Dever::load('passport/user')->data();
         if (!$this->data) {
             $url = Dever::url('home', 'service');
-            //Dever::location($url);
-            //return;
+            Dever::location($url);
+            return;
         } else {
             $this->data['uid'] = $this->data['id'];
         }
 
-        $this->data['uid'] = 4;
-
         $buy_id = Dever::input('buy_id');
         $journal_id = Dever::input('journal_id');