rabin 6 年之前
父节点
当前提交
2cbc953097
共有 1 个文件被更改,包括 9 次插入0 次删除
  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');
+        }
     }
     
     # 列表页