Pārlūkot izejas kodu

Weenier utc项目部署 06231

wesmiler 3 gadi atpakaļ
vecāks
revīzija
d5271f5bd4

+ 1 - 1
.env

@@ -38,7 +38,7 @@ REDIS_DB=4
 
 MAIL_DRIVER=smtp
 MAIL_HOST=smtp.163.com
-MAIL_PORT=456
+MAIL_PORT=465
 MAIL_USERNAME=wesmiler@163.com
 MAIL_FROM_ADDRESS=wesmiler@163.com
 MAIL_PASSWORD=HGXTVTQDYKWEXEKE

+ 2 - 2
addons/utcapp/common/api.js

@@ -1,5 +1,5 @@
-  // const baseUrl = 'http://127.0.5.10'   
-  const baseUrl = 'http://utc.wb.dongerkj.com'   
+  const baseUrl = 'http://127.0.5.10'   
+  // const baseUrl = 'http://utc.wb.dongerkj.com'   
 /* 
  *	请求不带token
  */

+ 73 - 0
app/Http/Controllers/Admin/LoginController.php

@@ -0,0 +1,73 @@
+<?php
+// +----------------------------------------------------------------------
+// | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
+// +----------------------------------------------------------------------
+// | 版权所有 2017~2021 LARAVEL研发中心
+// +----------------------------------------------------------------------
+// | 官方网站: http://www.laravel.cn
+// +----------------------------------------------------------------------
+// | Author: laravel开发员 <laravel.qq.com>
+// +----------------------------------------------------------------------
+
+namespace App\Http\Controllers\Admin;
+
+use App\Models\ActionLogModel;
+use App\Services\Common\LoginService;
+
+/**
+ * 登录控制器
+ * @author laravel开发员
+ * @since 2020/11/10
+ * Class LoginController
+ * @package App\Http\Controllers
+ */
+class LoginController extends Backend
+{
+
+    /**
+     * 构造函数
+     * @author laravel开发员
+     * @since 2020/11/10
+     * LoginController constructor.
+     */
+    public function __construct()
+    {
+        parent::__construct();
+        $this->service = new LoginService();
+    }
+
+    /**
+     * 获取验证码
+     * @return mixed
+     * @since 2020/11/10
+     * @author laravel开发员
+     */
+    public function captcha()
+    {
+        $result = $this->service->captcha();
+        return $result;
+    }
+
+    /**
+     * 系统登录
+     * @author laravel开发员
+     * @since 2020/11/10
+     */
+    public function login()
+    {
+        $result = $this->service->login();
+        return $result;
+    }
+
+    /**
+     * 退出系统
+     * @author laravel开发员
+     * @since 2020/11/10
+     */
+    public function logout()
+    {
+        $result = $this->service->logout();
+        return $result;
+    }
+
+}

+ 0 - 37
app/Http/Controllers/LayoutDescController.php

@@ -1,37 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
-// +----------------------------------------------------------------------
-// | 版权所有 2017~2021 LARAVEL研发中心
-// +----------------------------------------------------------------------
-// | 官方网站: http://www.laravel.cn
-// +----------------------------------------------------------------------
-// | Author: laravel开发员 <laravel.qq.com>
-// +----------------------------------------------------------------------
-
-namespace App\Http\Controllers;
-
-
-use App\Services\LayoutDescService;
-
-/**
- * 布局描述-控制器
- * @author laravel开发员
- * @since 2020/11/11
- * Class LayoutDescController
- * @package App\Http\Controllers
- */
-class LayoutDescController extends Backend
-{
-    /**
-     * 构造函数
-     * @author laravel开发员
-     * @since 2020/11/11
-     * LayoutDescController constructor.
-     */
-    public function __construct()
-    {
-        parent::__construct();
-        $this->service = new LayoutDescService();
-    }
-}