唐金木 4 years ago
parent
commit
f46c95110c

+ 1 - 1
php/.idea/deployment.xml

@@ -5,7 +5,7 @@
       <paths name="bts">
         <serverdata>
           <mappings>
-            <mapping local="$PROJECT_DIR$" web="/" />
+            <mapping deploy="/" local="$PROJECT_DIR$" web="/" />
           </mappings>
         </serverdata>
       </paths>

+ 2 - 2
php/.idea/webServers.xml

@@ -3,11 +3,11 @@
   <component name="WebServers">
     <option name="servers">
       <webServer id="ac01205c-b7e5-4621-aa54-c74126e8068c" name="bts" url="http://120.26.179.166">
-        <fileTransfer host="120.26.179.166" port="21" accessType="FTPS">
+        <fileTransfer host="120.26.179.166" port="22" rootFolder="/www/wwwroot/bts" accessType="SFTP">
           <advancedOptions>
             <advancedOptions dataProtectionLevel="Private" passiveMode="true" shareSSLContext="true" />
           </advancedOptions>
-          <option name="port" value="21" />
+          <option name="port" value="22" />
         </fileTransfer>
       </webServer>
     </option>

+ 1 - 1
php/app/admin/controller/Agent.php

@@ -109,7 +109,7 @@ class Agent extends Backend
            if ($type==0){
                $urls=url('index');
            }else{
-               $urls=url('Usermanage/index');
+               $urls=url('usermanage/index');
            }
         $user_id=input("user_id");
         $vip=UserLevel::select();

File diff suppressed because it is too large
+ 68 - 0
php/runtime/admin/log/202006/15.log


+ 185 - 0
php/runtime/admin/temp/14d50cc59972e0ab82b71f4b5f381353.php

@@ -0,0 +1,185 @@
+<?php /*a:1:{s:58:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\index\main.html";i:1590993415;}*/ ?>
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>主页面</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
+    <link rel="stylesheet" href="/static/admin/css/main.css" media="all">
+    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all">
+    <!--<style>-->
+        <!--.layui-card {border:1px solid #f2f2f2;border-radius:5px;}-->
+        <!--.icon {margin-right:10px;color:#1aa094;}-->
+        <!--.icon-cray {color:#ffb800!important;}-->
+        <!--.icon-blue {color:#1e9fff!important;}-->
+        <!--.icon-tip {color:#ff5722!important;}-->
+        <!--.LM-qiuck-module {text-align:center;margin-top: 10px}-->
+        <!--.LM-qiuck-module a i {display:inline-block;width:100%;height:60px;line-height:60px;text-align:center;border-radius:2px;font-size:30px;background-color:#F8F8F8;color:#333;transition:all .3s;-webkit-transition:all .3s;}-->
+        <!--.LM-qiuck-module a cite {position:relative;top:2px;display:block;color:#666;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:14px;}-->
+        <!--.welcome-module {width:100%;height:210px;}-->
+        <!--.panel {background-color:#fff;border:1px solid transparent;border-radius:3px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}-->
+        <!--.panel-body {padding:10px}-->
+        <!--.panel-title {margin-top:0;margin-bottom:0;font-size:12px;color:inherit}-->
+        <!--.label {display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;margin-top: .3em;}-->
+        <!--.layui-red {color:red}-->
+        <!--.main_btn > p {height:40px;}-->
+        <!--.layui-bg-number {background-color:#F8F8F8;}-->
+        <!--.LM-notice:hover {background:#f6f6f6;}-->
+        <!--.LM-notice {padding:7px 16px;clear:both;font-size:12px !important;cursor:pointer;position:relative;transition:background 0.2s ease-in-out;}-->
+        <!--.LM-notice-title,.LM-notice-label {-->
+            <!--padding-right: 70px !important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;}-->
+        <!--.LM-notice-title {line-height:28px;font-size:14px;}-->
+        <!--.LM-notice-extra {position:absolute;top:50%;margin-top:-8px;right:16px;display:inline-block;height:16px;color:#999;}-->
+    <!--</style>-->
+
+    <style>
+        .center {
+            text-align: center;
+            background-color: #F9F9F9 !important;
+        }
+
+        .boder {
+            border: 1px solid #D2D2D2 !important;
+        }
+
+        .p-size {
+            font-weight: 700;
+            font-size: 20px;
+        }
+        .border-left{
+            border-left-width: 5px;
+            border-left-style: solid;
+        }
+    </style>
+</head>
+<body>
+<div class="LM-container">
+    <div class="LM-main">
+        <div class="layui-row layui-col-space15">
+
+首页
+
+        </div>
+    </div>
+</div>
+<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
+<script src="/static/plugins/echarts/echarts.min.js" charset="utf-8"></script>
+<script src="/static/plugins/echarts/echarts-theme.js" charset="utf-8"></script>
+<script>
+    // layui.config({
+    //     base: "/static/admin/js/"
+    // }).extend({
+    //     "LM": "LM"
+    // });
+    // layui.use(['layer', 'LM'], function () {
+    //     var $ = layui.jquery,
+    //         layer = layui.layer;
+    //
+    //     /**
+    //      * 查看公告信息
+    //      **/
+    //     $('body').on('click', '.LM-notice', function () {
+    //         var title = $(this).children('.LM-notice-title').text(),
+    //             noticeTime = $(this).children('.LM-notice-extra').text(),
+    //             content = $(this).children('.LM-notice-content').html();
+    //         var html = '<div style="padding:15px 20px; text-align:justify; line-height: 22px;border-bottom:1px solid #e2e2e2;background-color: #2f4056;color: #ffffff">\n' +
+    //             '<div style="text-align: center;margin-bottom: 20px;font-weight: bold;border-bottom:1px solid #718fb5;padding-bottom: 5px"><h4 class="text-danger">' + title + '</h4></div>\n' +
+    //             '<div style="font-size: 12px">' + content + '</div>\n' +
+    //             '</div>\n';
+    //         parent.layer.open({
+    //             type: 1,
+    //             title: '系统公告'+'<span style="float: right;right: 1px;font-size: 12px;color: #b1b3b9;margin-top: 1px">'+noticeTime+'</span>',
+    //             area: '300px;',
+    //             shade: 0.8,
+    //             id: 'LM-notice',
+    //             btn: ['查看', '取消'],
+    //             btnAlign: 'c',
+    //             moveType: 1,
+    //             content:html,
+    //             success: function (layero) {
+    //                 var btn = layero.find('.layui-layer-btn');
+    //                 btn.find('.layui-layer-btn0').attr({
+    //                     href: 'https://github.com/yue909/LEMOCMS',
+    //                     target: '_blank'
+    //                 });
+    //             }
+    //         });
+    //     });
+    //
+    //     /**
+    //      * 报表功能
+    //      */
+    //     var echartsRecords = echarts.init(document.getElementById('echarts-records'), 'walden');
+    //     var optionRecords = {
+    //         tooltip: {
+    //             trigger: 'axis'
+    //         },
+    //         legend: {
+    //             data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
+    //         },
+    //         grid: {
+    //             left: '3%',
+    //             right: '4%',
+    //             bottom: '3%',
+    //             containLabel: true
+    //         },
+    //         toolbox: {
+    //             feature: {
+    //                 saveAsImage: {}
+    //             }
+    //         },
+    //         xAxis: {
+    //             type: 'category',
+    //             boundaryGap: false,
+    //             data: ['周一','周二','周三','周四','周五','周六','周日']
+    //         },
+    //         yAxis: {
+    //             type: 'value'
+    //         },
+    //         series: [
+    //             {
+    //                 name:'邮件营销',
+    //                 type:'line',
+    //                 stack: '总量',
+    //                 data:[120, 132, 101, 134, 90, 230, 210]
+    //             },
+    //             {
+    //                 name:'联盟广告',
+    //                 type:'line',
+    //                 stack: '总量',
+    //                 data:[220, 182, 191, 234, 290, 330, 310]
+    //             },
+    //             {
+    //                 name:'视频广告',
+    //                 type:'line',
+    //                 stack: '总量',
+    //                 data:[150, 232, 201, 154, 190, 330, 410]
+    //             },
+    //             {
+    //                 name:'直接访问',
+    //                 type:'line',
+    //                 stack: '总量',
+    //                 data:[320, 332, 301, 334, 390, 330, 320]
+    //             },
+    //             {
+    //                 name:'搜索引擎',
+    //                 type:'line',
+    //                 stack: '总量',
+    //                 data:[820, 932, 901, 934, 1290, 1330, 1320]
+    //             }
+    //         ]
+    //     };
+    //     echartsRecords.setOption(optionRecords);
+    //
+    //     // echarts 窗口缩放自适应
+    //     window.onresize = function(){
+    //         echartsRecords.resize();
+    //     }
+    //
+    // });
+</script>
+</body>
+</html>

+ 149 - 0
php/runtime/admin/temp/193b3c530962981d3a4dc850749aaa8b.php

@@ -0,0 +1,149 @@
+<?php /*a:1:{s:59:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\login\index.html";i:1591593521;}*/ ?>
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="UTF-8">
+    <title><?php echo site_name(); ?>后台管理-登陆</title>
+    <meta name="keywords" content="thinkphp6,thinkphp,layui,easywechat框架,框架,组件">
+    <meta name="description" content="是一款采用 layui开发的极简后台管理框架 基于thinkphp6 ,easywechat,开发的cms后台管理系统,thinkphp,yii2,cms,php后台管理系统,cms,cms系统,restful api,thinkphp后台管理系统">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta http-equiv="Access-Control-Allow-Origin" content="*">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="format-detection" content="telephone=no">
+    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all">
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <![endif]-->
+    <style>
+        html, body {width: 100%;height: 100%;overflow: hidden}
+        body {background: #000;}
+        body:after {content:'';background-repeat:no-repeat;background-size:cover;-webkit-filter:blur(3px);-moz-filter:blur(3px);-o-filter:blur(3px);-ms-filter:blur(3px);filter:blur(3px);position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;}
+        .layui-container {width: 100%;height: 100%;overflow: hidden;}
+        .admin-login-background {width:360px;height:300px;position:absolute;left:50%;top:40%;margin-left:-180px;margin-top:-100px;}
+        .logo-title {text-align:center;letter-spacing:2px;padding:14px 0;}
+        .logo-title h1 {color:#009688;font-size:25px;font-weight:bold;}
+        .login-form {background-color:#fff;border:1px solid #fff;border-radius:3px;padding:14px 20px;box-shadow:0 0 8px #eeeeee;}
+        .login-form .layui-form-item {position:relative;}
+        .login-form .layui-form-item label {position:absolute;left:1px;top:1px;width:38px;line-height:36px;text-align:center;color:#d2d2d2;}
+        .login-form .layui-form-item input {padding-left:36px;}
+        .captcha {width:60%;display:inline-block;}
+        .captcha-img {display:inline-block;width:34%;float:right;}
+        .captcha-img img {height:34px;border:1px solid #e6e6e6;height:36px;width:100%;}
+        .copyright{font-size:12px;color: #ccc; text-align: center;}
+        @media screen  and (max-width: 320px) {
+            .admin-login-background {
+                width:300px;
+                left: 59%;
+            }
+        }
+
+    </style>
+</head>
+<body>
+<div id="canvas"></div>
+<div class="layui-container">
+    <div class="admin-login-background">
+        <div class="layui-form login-form">
+            <form class="layui-form" action="">
+                <div class="layui-form-item logo-title">
+                    <h1><?php echo site_name(); ?>管理后台</h1>
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-icon layui-icon-username" for="username"></label>
+                    <input type="text" name="username" lay-verify="required|account" placeholder="用户名或者邮箱" autocomplete="off" class="layui-input" value="">
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-icon layui-icon-password" for="password"></label>
+                    <input type="password" name="password" lay-verify="required|password" placeholder="密码" autocomplete="off" class="layui-input" value="">
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-icon layui-icon-vercode" for="captcha"></label>
+                    <input type="text" name="captcha" lay-verify="required|captcha" placeholder="图形验证码" autocomplete="off" class="layui-input verification captcha" value="">
+                    <div class="captcha-img">
+                        <img  id="captchaPic" src="<?php echo url('verify'); ?>?<?php echo time(); ?>" alt="captcha" onclick="this.src='<?php echo url("verify"); ?>?'+'id='+Math.random()"/>
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <input type="checkbox" name="rememberMe" checked value="true" lay-skin="primary" title="记住密码">
+                    <input type="checkbox" name="daili"  value="true" lay-skin="primary" title="代理商登录">
+                </div>
+
+                <div class="layui-form-item">
+                    <button class="layui-btn layui-btn-fluid" lay-submit="" lay-filter="login">登 入</button>
+                </div>
+                <div class="copyright">
+                    © 2009-<?php echo date("Y");?> <a href="http://quyum.com" target="_blank">千翼科技</a> All Rights Reserved.
+                </div>
+            </form>
+        </div>
+    </div>
+</div>
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
+<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
+<script src="/static/plugins/firework/firework.js" charset="utf-8"></script>
+<script>
+    layui.use(['form'], function () {
+        var form = layui.form,
+            layer = layui.layer;
+        // 登录过期的时候,跳出ifram框架
+        if (top.location != self.location) top.location = self.location;
+
+        // 粒子线条背景
+        $(document).ready(function(){
+
+                $("#canvas").fireworks({
+                    width: "100%",
+                    height: "100%"
+                });
+
+        });
+
+        // 进行登录操作
+        form.on('submit(login)', function (data) {
+            data = data.field;
+
+            if (data.username == '') {
+                layer.msg('用户名不能为空');
+                return false;
+            }
+            if (data.password == '') {
+                layer.msg('密码不能为空');
+                return false;
+            }
+            if (data.captcha == '') {
+                layer.msg('验证码不能为空');
+                return false;
+            }
+
+            $.ajax({
+
+                method:'post',
+                data:data,
+                success:function (res) {
+                    if(res.code>0){
+                        layer.msg(res.msg, function () {
+                            window.location = "<?php echo url('index/index'); ?>";
+                        });
+                    }else{
+                        layer.msg(res.msg);
+                        $('#captchaPic').attr('src','<?php echo url("verify"); ?>?id='+Math.random());
+                        return false;
+                    }
+
+                },fail:function (res) {
+                    layer.msg(res.msg, function () {
+                        $('#captchaPic').attr('src','<?php echo url("verify"); ?>?id='+Math.random());
+                        return false;
+                    });
+                }
+            });
+
+            return false;
+        });
+    });
+</script>
+</body>
+</html>

+ 139 - 0
php/runtime/admin/temp/a5b87fd77913dd9b0ad9dd783203b8ce.php

@@ -0,0 +1,139 @@
+<?php /*a:3:{s:59:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\index\index.html";i:1581911356;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1591579556;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1591579556;}*/ ?>
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="format-detection" content="telephone=no">
+    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
+    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
+    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
+
+    <style id="LM-bg-color">
+    </style>
+
+</head>
+<link rel="stylesheet" href="/static/admin/css/common.css" media="all">
+
+<body class="layui-layout-body LM-all">
+<div class="layui-layout layui-layout-admin">
+
+    <div class="layui-header header">
+        <div class="layui-logo"><a href="">
+            <img src="<?php echo site_logo(); ?>" alt="lemocms">
+            <h1><?php echo site_name(); ?></h1>
+        </a>
+        </div>
+        <a>
+            <div class="LM-tool"><i title="展开" class="fa fa-outdent" data-side-fold="1"></i></div>
+        </a>
+
+        <!--pc 端-->
+        <ul class="layui-nav layui-layout-left layui-header-menu layui-header-pc-menu mobile layui-hide-xs">
+        </ul>
+            <!--手机端-->
+        <ul class="layui-nav layui-layout-left layui-header-menu mobile layui-hide-sm">
+            <li class="layui-nav-item">
+                <a href="javascript:;"><i class="fa fa-list-ul"></i> 选择模块</a>
+                <dl class="layui-nav-child layui-header-mini-menu">
+                </dl>
+            </li>
+        </ul>
+
+
+        <ul class="layui-nav layui-layout-right">
+            <li class="layui-nav-item">
+                <a href="javascript:;" data-refresh="刷新"><i class="fa fa-refresh"></i></a>
+            </li>
+            <li class="layui-nav-item">
+                <a href="javascript:;" data-clear="清理" data-href="<?php echo url('cleardata'); ?>" class="LM-clear"><i class="fa fa-trash-o"></i></a>
+            </li>
+            <li class="layui-nav-item LM-setting">
+                <a href="javascript:;"><?php echo session('admin.username'); ?></a>
+                <dl class="layui-nav-child">
+                    <dd>
+                        <a href="javascript:;" data-iframe-tab="<?php echo url('auth/adminEdit'); ?>" data-title="基本资料" data-icon="fa fa-gears">基本资料</a>
+                    </dd>
+                    <dd>
+                        <a href="javascript:;" data-iframe-tab="<?php echo url('password'); ?>" data-title="修改密码" data-icon="fa fa-gears">修改密码</a>
+                    </dd>
+                    <dd>
+                        <a href="javascript:;" class="login-out">退出登录</a>
+                    </dd>
+                </dl>
+            </li>
+            <li class="layui-nav-item LM-select-bgcolor mobile layui-hide-xs">
+                <a href="javascript:;" data-bgcolor="配色方案"><i class="fa fa-ellipsis-v"></i></a>
+            </li>
+        </ul>
+    </div>
+
+    <div class="layui-side layui-bg-black">
+        <div class="layui-side-scroll layui-left-menu">
+        </div>
+    </div>
+
+    <div class="layui-body">
+        <div class="layui-tab" lay-filter="LMTab" id="top_tabs_box">
+            <ul class="layui-tab-title" id="top_tabs">
+                <li class="layui-this" id="LMHomeTabId" lay-id=""></li>
+            </ul>
+<!--            关闭按钮-->
+            <ul class="layui-nav closeBox">
+                <li class="layui-nav-item">
+                    <a href="javascript:;"> <i class="fa fa-dot-circle-o"></i> 页面操作</a>
+                    <dl class="layui-nav-child">
+                        <dd><a href="javascript:;" data-page-close="other"><i class="fa fa-window-close"></i> 关闭其他</a></dd>
+                        <dd><a href="javascript:;" data-page-close="all"><i class="fa fa-window-close-o"></i> 关闭全部</a></dd>
+                    </dl>
+                </li>
+            </ul>
+            <div class="layui-tab-content clildFrame">
+                <!--           加载iframe          /-->
+                <div id="LMHomeTabIframe" class="layui-tab-item layui-show"
+                </div>
+
+            </div>
+        </div>
+
+        <div class="layui-footer footer footer-demo" id="admin-footer">
+            <div class="layui-main">
+                <p><?php  echo( date("Y",time())); ?> ©
+                    <a href="http://www.quyum.com/">千翼科技</a> Apache Licence 2.0
+                </p>
+            </div>
+        </div>
+    </div>
+
+
+<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+    var menus ='<?php echo $menus; ?>';
+    layui.config({
+        base: "/static/admin/js/",
+        version: true
+    }).extend({
+        LM: "LM"
+    }).use(['element', 'layer', 'LM'], function () {
+        var $ = layui.jquery,
+            element = layui.element,
+            layer = layui.layer;
+        if(layui.cache.menus){
+            menus = layui.cache.menus;
+        }else{
+            layui.cache.menus = menus;
+        }
+        // console.log("menus",menus)
+
+        LM.init(menus);
+
+    });
+</script>
+</body>
+

+ 183 - 0
php/runtime/admin/temp/d97c9d2fc4ef5b922e0fdd5f180d56ed.php

@@ -0,0 +1,183 @@
+<?php /*a:3:{s:72:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\usermanage\tongxingzheng.html";i:1591579556;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1591579556;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1591579556;}*/ ?>
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="format-detection" content="telephone=no">
+    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
+    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
+    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
+
+    <style id="LM-bg-color">
+    </style>
+
+</head>
+
+<style>
+    .yourclass {
+        display: block;
+    }
+
+    .canel {
+        display: none;
+    }
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>通证记录</legend>
+            <blockquote class="layui-elem-quote">
+
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list"></table>
+    </div>
+</div>
+
+
+
+<script type="text/html" id="barDemo">
+    <input type="button" class="layui-btn layui-btn-xs" lay-event="del" value="删除">
+
+</script>
+
+
+<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+    let redIndex=0;
+    let user_id=0;
+    let vip_level=0;
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '<?php echo url("tongxingzheng"); ?>',
+            method: 'post',
+            title: '用户数据表',
+            // toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, sort: true},
+                {field: 'user_id', title: '用户id', width: 200},
+                {field: 'user_name', title: '用户名称', width: 200},
+                {field: 'name', title: '说明', width: 200},
+                {field: 'money', title: '金额', width: 200},
+                {field: 'status', title: '0增加1减少', width: 200},
+                {field: 'add_time', title: '添加时间', width: 200},
+                // {title: '操作', width: 150, toolbar: '#barDemo', align: "center"},
+
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 15,
+            page: true
+        });
+
+//监听单元格编辑
+        table.on('edit(list)', function(obj){
+            var value = obj.value //得到修改后的值
+                ,data = obj.data //得到所在行所有键值
+                ,field = obj.field; //得到字段
+            // layer.msg('[ID: '+ data.id +'] ' + field + ' 字段更改为:'+ value);
+            let da={
+                id:data.id,
+                field:field,
+                value:value
+            }
+            $.post("<?php echo url('update_user_level'); ?>", da, function (res) {
+                if (res.code ==200) {
+                    layer.msg(res.msg, {time: 1000, icon: 1});
+
+                } else {
+                    tableIn.reload()
+                    layer.msg(res.msg, {time: 1000, icon: 2});
+                }
+            },"json");
+        });
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            if (obj.event === 'del') {
+                layer.confirm('您确定要删除吗', function (index) {
+                    loading = layer.load(1, {shade: [0.1, '#fff']});
+                    $.post("<?php echo url('del_user_level'); ?>", {id: data.id}, function (res) {
+                        layer.close(loading);
+                        layer.close(index);
+                        if (res.code ==200) {
+                            layer.msg(res.msg, {time: 1000, icon: 1});
+                            obj.del();
+                        } else {
+                            layer.msg(res.msg, {time: 1000, icon: 2});
+                        }
+                    },"json");
+                });
+            }
+
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+            // 修改状态
+            loading = layer.load(1, {shade: [0.1, '#fff']});
+            $.post("<?php echo url('fenhao'); ?>", {id: data.value}, function (res) {
+                layer.close(loading);
+                if (res.code == 200) {
+                    layer.msg(res.msg, {time: 1000, icon: 1});
+                } else {
+                    layer.msg(res.msg, {time: 1000, icon: 2});
+                }
+            }, "json");
+        });
+
+        $("#add_level").click(function () {
+            let data={
+                level:$("#level").val(),
+                bili:$("#bili").val(),
+            }
+            if (!data.level){
+                layer.msg("请输入等级", {time: 1000, icon: 1});
+                return;
+            }
+            loading = layer.load(1, {shade: [0.1, '#fff']});
+            $.post("<?php echo url('add_user_level'); ?>", data, function (res) {
+                layer.close(loading);
+                if (res.code == 200) {
+                    layer.msg(res.msg, {time: 1000, icon: 1});
+                    tableIn.reload()
+                } else {
+                    layer.msg(res.msg, {time: 1000, icon: 2});
+                }
+            }, "json");
+        })
+
+        $('#search').click(function () {
+            var $keys = $('#keys').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {keys: $keys}});
+
+        })
+
+    });
+
+</script>

File diff suppressed because it is too large
+ 4 - 0
php/runtime/cache/0b/dc60c1eb9bd2792cd1fa7f85d9c865.php


BIN
php/runtime/session/sess_09a396f7df83d7c8f269222daee9c9e3


+ 18 - 18
php/test.sql

@@ -1170,18 +1170,18 @@ INSERT INTO `lm_auth_rule` VALUES (151, 'System/configDel', '删除配置', 1, 1
 INSERT INTO `lm_auth_rule` VALUES (152, 'System/configState', '配置状态', 1, 1, 0, 0, NULL, '', 148, 0, 0, NULL);
 INSERT INTO `lm_auth_rule` VALUES (153, 'System/configGroupAdd', '配置组添加', 1, 1, 0, 0, NULL, '', 148, 0, 0, NULL);
 INSERT INTO `lm_auth_rule` VALUES (154, 'System/configGroupDel', '配置组删除', 1, 1, 0, 0, NULL, '', 148, 0, 0, NULL);
-INSERT INTO `lm_auth_rule` VALUES (208, 'Usermanage', '用户管理', 1, 1, 0, 1, 'fa fa-adjust', '', 0, 50, 1591090253, 1591090253);
-INSERT INTO `lm_auth_rule` VALUES (209, 'Usermanage/index', '用户列表', 1, 1, 0, 1, 'fa fa-adjust', '', 208, 50, 1591090321, 1591090321);
-INSERT INTO `lm_auth_rule` VALUES (211, 'Usermanage/update_pwd', '密码重置', 1, 1, 0, 0, NULL, '', 208, 0, 0, 1591340444);
-INSERT INTO `lm_auth_rule` VALUES (212, 'Usermanage/fenhao', '封号', 1, 1, 0, 0, NULL, '', 208, 0, 0, 1591340439);
-INSERT INTO `lm_auth_rule` VALUES (214, 'Usermanage/tongxingzheng', '用户通证记录', 1, 1, 0, 1, NULL, '', 208, 0, 0, 1591340456);
-INSERT INTO `lm_auth_rule` VALUES (215, 'Usermanage/update_level', '设置会员等级列表', 1, 1, 0, 1, 'fa fa-adjust', '', 208, 0, 0, 1591408429);
-INSERT INTO `lm_auth_rule` VALUES (216, 'Agent', '代理商管理', 1, 1, 0, 1, NULL, '', 0, 0, 0, 1591091300);
-INSERT INTO `lm_auth_rule` VALUES (217, 'Agent/index', '代理商列表', 1, 1, 0, 1, NULL, '', 216, 0, 0, 1591340374);
-INSERT INTO `lm_auth_rule` VALUES (218, 'Agent/show', '代理商详情', 1, 1, 0, 0, NULL, '', 216, 0, 0, NULL);
-INSERT INTO `lm_auth_rule` VALUES (219, 'Agent/update_status', '停用代理商', 1, 1, 0, 0, NULL, '', 216, 0, 0, NULL);
-INSERT INTO `lm_auth_rule` VALUES (220, 'Agent/xiaji', '下级用户列表', 1, 1, 0, 0, NULL, '', 216, 0, 0, NULL);
-INSERT INTO `lm_auth_rule` VALUES (221, 'Agent/chongzhi', '代理充值', 1, 1, 0, 0, NULL, '', 216, 0, 0, NULL);
+INSERT INTO `lm_auth_rule` VALUES (208, 'usermanage', '用户管理', 1, 1, 0, 1, 'fa fa-adjust', '', 0, 50, 1591090253, 1591090253);
+INSERT INTO `lm_auth_rule` VALUES (209, 'usermanage/index', '用户列表', 1, 1, 0, 1, 'fa fa-adjust', '', 208, 50, 1591090321, 1591090321);
+INSERT INTO `lm_auth_rule` VALUES (211, 'usermanage/update_pwd', '密码重置', 1, 1, 0, 0, NULL, '', 208, 0, 0, 1591340444);
+INSERT INTO `lm_auth_rule` VALUES (212, 'usermanage/fenhao', '封号', 1, 1, 0, 0, NULL, '', 208, 0, 0, 1591340439);
+INSERT INTO `lm_auth_rule` VALUES (214, 'usermanage/tongxingzheng', '用户通证记录', 1, 1, 0, 1, NULL, '', 208, 0, 0, 1591340456);
+INSERT INTO `lm_auth_rule` VALUES (215, 'usermanage/update_level', '设置会员等级列表', 1, 1, 0, 1, 'fa fa-adjust', '', 208, 0, 0, 1591408429);
+INSERT INTO `lm_auth_rule` VALUES (216, 'agent', '代理商管理', 1, 1, 0, 1, NULL, '', 0, 0, 0, 1591091300);
+INSERT INTO `lm_auth_rule` VALUES (217, 'agent/index', '代理商列表', 1, 1, 0, 1, NULL, '', 216, 0, 0, 1591340374);
+INSERT INTO `lm_auth_rule` VALUES (218, 'agent/show', '代理商详情', 1, 1, 0, 0, NULL, '', 216, 0, 0, NULL);
+INSERT INTO `lm_auth_rule` VALUES (219, 'agent/update_status', '停用代理商', 1, 1, 0, 0, NULL, '', 216, 0, 0, NULL);
+INSERT INTO `lm_auth_rule` VALUES (220, 'agent/xiaji', '下级用户列表', 1, 1, 0, 0, NULL, '', 216, 0, 0, NULL);
+INSERT INTO `lm_auth_rule` VALUES (221, 'agent/chongzhi', '代理充值', 1, 1, 0, 0, NULL, '', 216, 0, 0, NULL);
 INSERT INTO `lm_auth_rule` VALUES (222, 'Certificate', '通证管理', 1, 1, 0, 1, NULL, '', 0, 0, 0, 1591091301);
 INSERT INTO `lm_auth_rule` VALUES (224, 'Certificate/bts', 'BTS管理', 1, 1, 0, 1, NULL, '', 222, 0, 0, 1591340388);
 INSERT INTO `lm_auth_rule` VALUES (225, 'Order', '订单管理', 1, 1, 0, 1, NULL, '', 0, 0, 0, 1591091303);
@@ -1200,16 +1200,16 @@ INSERT INTO `lm_auth_rule` VALUES (238, 'Contents/feedback', '反馈信息管理
 INSERT INTO `lm_auth_rule` VALUES (239, 'Contents/hlep', '帮助信息管理', 1, 1, 0, 1, NULL, '', 235, 0, 0, 1591340426);
 INSERT INTO `lm_auth_rule` VALUES (240, 'Contents/push', '收款信息管理', 1, 1, 0, 1, NULL, '', 235, 0, 0, 1591340428);
 INSERT INTO `lm_auth_rule` VALUES (241, 'Contents/about', '关于我们', 1, 1, 0, 1, NULL, '', 235, 0, 0, 1591340429);
-INSERT INTO `lm_auth_rule` VALUES (242, 'Usermanage/update_leve', '设置等级', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591275022, 1591408411);
+INSERT INTO `lm_auth_rule` VALUES (242, 'usermanage/update_leve', '设置等级', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591275022, 1591408411);
 INSERT INTO `lm_auth_rule` VALUES (243, 'Usersys', '系统管理', 1, 1, 0, 1, 'fa fa-adjust', '', 0, 50, 1591595822, 1591595822);
 INSERT INTO `lm_auth_rule` VALUES (244, 'Usersys/my', '我的邀请码', 1, 1, 0, 1, 'fa fa-adjust', '', 243, 50, 1591595867, 1591595867);
 INSERT INTO `lm_auth_rule` VALUES (245, 'Usersys/account', '账号信息管理', 1, 1, 0, 1, 'fa fa-adjust', '', 243, 50, 1591595969, 1591595969);
 INSERT INTO `lm_auth_rule` VALUES (246, 'Usersys/message', '收款信息管理', 1, 1, 0, 1, 'fa fa-adjust', '', 243, 50, 1591596022, 1591596022);
-INSERT INTO `lm_auth_rule` VALUES (247, 'Usermanage/delete_user', '删除账号', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601252, 1591601252);
-INSERT INTO `lm_auth_rule` VALUES (248, 'Usermanage/update_user_money', '对账号的金额进行操作', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601315, 1591601315);
-INSERT INTO `lm_auth_rule` VALUES (249, 'Usermanage/is_admin', '是否为代理商户', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601388, 1591601388);
-INSERT INTO `lm_auth_rule` VALUES (250, 'Usermanage/add_user_level', '添加等级', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601431, 1591601431);
-INSERT INTO `lm_auth_rule` VALUES (251, 'Usermanage/update_user_level', '更新等级', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601442, 1591601442);
+INSERT INTO `lm_auth_rule` VALUES (247, 'usermanage/delete_user', '删除账号', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601252, 1591601252);
+INSERT INTO `lm_auth_rule` VALUES (248, 'usermanage/update_user_money', '对账号的金额进行操作', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601315, 1591601315);
+INSERT INTO `lm_auth_rule` VALUES (249, 'usermanage/is_admin', '是否为代理商户', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601388, 1591601388);
+INSERT INTO `lm_auth_rule` VALUES (250, 'usermanage/add_user_level', '添加等级', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601431, 1591601431);
+INSERT INTO `lm_auth_rule` VALUES (251, 'usermanage/update_user_level', '更新等级', 1, 1, 0, 0, 'fa fa-adjust', '', 208, 50, 1591601442, 1591601442);
 INSERT INTO `lm_auth_rule` VALUES (252, 'Contents/opens', '开盘设置', 1, 1, 0, 1, 'fa fa-adjust', '', 235, 50, 1591603593, 1591603593);
 INSERT INTO `lm_auth_rule` VALUES (253, 'Contents/adminuser', '后台收款账号', 1, 1, 0, 1, 'fa fa-adjust', '', 235, 50, 1591607778, 1591607778);
 INSERT INTO `lm_auth_rule` VALUES (254, 'Contents/showuser', '收款信息', 1, 1, 0, 0, 'fa fa-adjust', '', 253, 50, 1591607880, 1591607880);

php/view/admin/Agent/index.html → php/view/admin/agent/index.html


php/view/admin/Agent/xiaji.html → php/view/admin/agent/xiaji.html


+ 26 - 26
php/view/admin/error/error.html

@@ -45,32 +45,32 @@
 </head>
 <body>
 <div class="error">
-    <iframe scrolling='no' frameborder='0' src='http://yibo.iyiyun.com/Home/Distribute/ad404/key/1360858' width='654' height='470' style='display:block;'></iframe>
-    <!--<div class="container-floud">-->
-        <!--<div style="text-align: center">-->
-            <!--<div class="container-error-404">-->
-                <!--<div class="clip">-->
-                    <!--<div class="shadow">-->
-                        <!--<span class="digit thirdDigit"></span>-->
-                    <!--</div>-->
-                <!--</div>-->
-                <!--<div class="clip">-->
-                    <!--<div class="shadow">-->
-                        <!--<span class="digit secondDigit"></span>-->
-                    <!--</div>-->
-                <!--</div>-->
-                <!--<div class="clip">-->
-                    <!--<div class="shadow">-->
-                        <!--<span class="digit firstDigit"></span>-->
-                    <!--</div>-->
-                <!--</div>-->
-                <!--<div class="msg">OH!-->
-                    <!--<span class="triangle"></span>-->
-                <!--</div>-->
-            <!--</div>-->
-            <!--<h2 class="h1">很抱歉,你访问的页面找不到了</h2>-->
-        <!--</div>-->
-    <!--</div>-->
+
+    <div class="container-floud">
+        <div style="text-align: center">
+            <div class="container-error-404">
+                <div class="clip">
+                    <div class="shadow">
+                        <span class="digit thirdDigit"></span>
+                    </div>
+                </div>
+                <div class="clip">
+                    <div class="shadow">
+                        <span class="digit secondDigit"></span>
+                    </div>
+                </div>
+                <div class="clip">
+                    <div class="shadow">
+                        <span class="digit firstDigit"></span>
+                    </div>
+                </div>
+                <div class="msg">OH!
+                    <span class="triangle"></span>
+                </div>
+            </div>
+            <h2 class="h1">很抱歉,你访问的页面找不到了</h2>
+        </div>
+    </div>
 </div>
 <script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
 <script>

php/view/admin/Usermanage/certificateshow.html → php/view/admin/usermanage/certificateshow.html


php/view/admin/Usermanage/index.html → php/view/admin/usermanage/index.html


php/view/admin/Usermanage/tongxingzheng.html → php/view/admin/usermanage/tongxingzheng.html


php/view/admin/Usermanage/update_level.html → php/view/admin/usermanage/update_level.html


php/view/admin/Usermanage/user_money.html → php/view/admin/usermanage/user_money.html


php/view/admin/Usermanage/usermessage.html → php/view/admin/usermanage/usermessage.html


php/view/admin/Usermanage/vip_level.html → php/view/admin/usermanage/vip_level.html