rabin 5 years ago
parent
commit
2cbc953097
1 changed files with 9 additions and 0 deletions
  1. 9 0
      buy/src/Buy.php

+ 9 - 0
buy/src/Buy.php

@@ -8,6 +8,15 @@ class Buy extends Base
     public function __construct()
     {
         parent::__construct();
+
+        $test = Dever::input('test');
+        if ($test == 1) {
+            print_r($this->user);die;
+        }
+
+        if (!$this->user) {
+            return $this->location('home');
+        }
     }
     
     # 列表页