Initial commit,修正
This commit is contained in:
parent
658753795e
commit
b944fa7bb4
13
.gitee/ISSUE_TEMPLATE.zh-CN.md
Normal file
13
.gitee/ISSUE_TEMPLATE.zh-CN.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
### 该问题是怎么引起的?
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### 重现步骤
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### 报错信息
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
12
.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
Normal file
12
.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
### 相关的Issue
|
||||||
|
|
||||||
|
|
||||||
|
### 原因(目的、解决的问题等)
|
||||||
|
|
||||||
|
|
||||||
|
### 描述(做了什么,变更了什么)
|
||||||
|
|
||||||
|
|
||||||
|
### 测试用例(新增、改动、可能影响的功能)
|
||||||
|
|
||||||
|
|
55
.gitignore
vendored
55
.gitignore
vendored
@ -6,3 +6,58 @@ protected/runtime/*
|
|||||||
protected/data/*.db
|
protected/data/*.db
|
||||||
themes/classic/views/
|
themes/classic/views/
|
||||||
|
|
||||||
|
# General
|
||||||
|
.DS_Store
|
||||||
|
.AppleDouble
|
||||||
|
.LSOverride
|
||||||
|
|
||||||
|
# Icon must end with two \r
|
||||||
|
Icon
|
||||||
|
|
||||||
|
|
||||||
|
# Thumbnails
|
||||||
|
._*
|
||||||
|
|
||||||
|
# Files that might appear in the root of a volume
|
||||||
|
.DocumentRevisions-V100
|
||||||
|
.fseventsd
|
||||||
|
.Spotlight-V100
|
||||||
|
.TemporaryItems
|
||||||
|
.Trashes
|
||||||
|
.VolumeIcon.icns
|
||||||
|
.com.apple.timemachine.donotpresent
|
||||||
|
|
||||||
|
# Directories potentially created on remote AFP share
|
||||||
|
.AppleDB
|
||||||
|
.AppleDesktop
|
||||||
|
Network Trash Folder
|
||||||
|
Temporary Items
|
||||||
|
.apdisk
|
||||||
|
|
||||||
|
.gitee
|
||||||
|
YII.sublime-project
|
||||||
|
YII.sublime-workspace
|
||||||
|
YII2改造开发手记.docx
|
||||||
|
YII2高级模板多入口单域名解决方案.docx
|
||||||
|
YII2高级模板多域名单入口解决方案.docx
|
||||||
|
*453*.php
|
||||||
|
nginx.htaccess
|
||||||
|
private.html
|
||||||
|
公众号开发SDK备忘.txt
|
||||||
|
多管理系统混合.txt
|
||||||
|
用户服务条款.html
|
||||||
|
禁止访问.php
|
||||||
|
/git-补丁/
|
||||||
|
/生成的数据表文件/
|
||||||
|
/pms-admin/web/assets/
|
||||||
|
/front-hiluker/嗨路客官网.sublime-project
|
||||||
|
/front-hiluker/嗨路客官网.sublime-workspace
|
||||||
|
/front-hiluker/嗨路客官网.txt
|
||||||
|
/dacms-api/API站点专用.txt
|
||||||
|
/dacms-api/API站点系统.sublime-workspace
|
||||||
|
/dacms-api/cert/*
|
||||||
|
/dacms-api/web/assets/
|
||||||
|
/ctms-home/web/assets/
|
||||||
|
/ctms-admin/web/assets/
|
||||||
|
/assets/
|
||||||
|
/admins/web/assets/
|
||||||
|
110
.idea/php.xml
generated
Normal file
110
.idea/php.xml
generated
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PhpIncludePathManager">
|
||||||
|
<include_path>
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpspec/php-diff" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/behat/gherkin" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-timer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/yiisoft/yii2" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/phpunit" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-text-template" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-file-iterator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/codeception/codeception" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phar-io/version" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-code-coverage" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/yaml" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phar-io/manifest" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/codeception/lib-asserts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/codeception/module-filesystem" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/http-message" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/event-dispatcher" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/http-factory" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/codeception/stub" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/codeception/lib-innerbrowser" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/bower-asset/jquery" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/codeception/verify" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/codeception/module-asserts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/bower-asset/yii2-pjax" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/codeception/module-yii2" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/bower-asset/punycode" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/bower-asset/inputmask" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/bower-asset/bootstrap" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/monolog/monolog" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/lexer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/instantiator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/fm-weixin/miniapp" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/fm-weixin/Wechat" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/finder" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/deprecation-contracts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/console" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/mdmsoft/yii2-admin" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-grapheme" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/css-selector" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-normalizer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/theseer/tokenizer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/browser-kit" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/dom-crawler" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/service-contracts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/cebe/markdown" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/string" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php72" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher-contracts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/aliyun/dysms" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-idn" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/yiisoft/yii2-gii" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/yiisoft/yii2-debug" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/ezyang/htmlpurifier" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/egulias/email-validator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/yiisoft/yii2-faker" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/fakerphp/faker" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/yiisoft/yii2-composer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/ralouphie/getallheaders" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/type" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/huawei/obsclient" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/diff" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/object-enumerator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/comparator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/exporter" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/version" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/recursion-context" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/resource-operations" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/environment" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/global-state" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/myclabs/deep-copy" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/code-unit-reverse-lookup" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/object-reflector" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/composer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/fmsoft/function" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/fmsoft/components" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/fmsoft/model" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/fmsoft/modules" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/fmsoft/class" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/guzzlehttp/psr7" />
|
||||||
|
<path value="$PROJECT_DIR$/dacms-worker/GatewayWorker3.0.18/vendor/workerman/workerman" />
|
||||||
|
<path value="$PROJECT_DIR$/dacms-worker/GatewayWorker3.0.18/vendor/workerman/gateway-worker" />
|
||||||
|
<path value="$PROJECT_DIR$/dacms-worker/GatewayWorker3.0.18/vendor/composer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/nikic/php-parser" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psy/psysh" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/log" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/codeception/lib-web" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/mime" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/var-dumper" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/mailer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-invoker" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/complexity" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/cli-parser" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/lines-of-code" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/code-unit" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/yiisoft/yii2-symfonymailer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/yiisoft/yii2-bootstrap5" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/deprecations" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/aliyun/dysms3" />
|
||||||
|
</include_path>
|
||||||
|
</component>
|
||||||
|
<component name="PhpProjectSharedConfiguration" php_language_level="8.1" />
|
||||||
|
</project>
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
26
404.html
Executable file
26
404.html
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
|
<title>404</title>
|
||||||
|
<style>
|
||||||
|
body{
|
||||||
|
background-color:#444;
|
||||||
|
font-size:14px;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
font-size:60px;
|
||||||
|
color:#eee;
|
||||||
|
text-align:center;
|
||||||
|
padding-top:30px;
|
||||||
|
font-weight:normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h3>404,您请求的文件不存在!</h3>
|
||||||
|
</body>
|
||||||
|
</html>
|
33
453.php
Executable file
33
453.php
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>无效访问!</title>
|
||||||
|
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
|
||||||
|
<script src="//cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
|
||||||
|
<script src="//cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
||||||
|
</head>
|
||||||
|
<style>
|
||||||
|
body{background-color:#000;color:#00ff00;}
|
||||||
|
.container{border-radius:5px;padding:20px;}
|
||||||
|
.panel{background:transparent;}
|
||||||
|
pre{background-color:#000;color:#00ff00;border:1px dashed #39ed15;}
|
||||||
|
</style>
|
||||||
|
<body >
|
||||||
|
<div class="container" style="margin-top:9%;">
|
||||||
|
<div class="panel panel-danger">
|
||||||
|
<div class="panel-heading"><h3>From: <?php echo $_SERVER['HTTP_HOST'];?></h3></div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<h5>You are viewing the
|
||||||
|
unreachable page or site!</h5>
|
||||||
|
<p><li>If you think this is a mistake here,</li></p>
|
||||||
|
<p><li>you can call me via these ways:</li></p>
|
||||||
|
<p><li>微信/QQ/钉钉: 18608981880</li></p>
|
||||||
|
<p><li>邮箱: fm453@lukegzs.com</li></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php //var_dump($_SERVER);?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
33
453_test.php
Executable file
33
453_test.php
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>无效访问!</title>
|
||||||
|
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
|
||||||
|
<script src="//cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
|
||||||
|
<script src="//cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
||||||
|
</head>
|
||||||
|
<style>
|
||||||
|
body{background-color:#000;color:#00ff00;}
|
||||||
|
.container{border-radius:5px;padding:20px;}
|
||||||
|
.panel{background:transparent;}
|
||||||
|
pre{background-color:#000;color:#00ff00;border:1px dashed #39ed15;}
|
||||||
|
</style>
|
||||||
|
<body >
|
||||||
|
<div class="container" style="margin-top:9%;">
|
||||||
|
<div class="panel panel-danger">
|
||||||
|
<div class="panel-heading"><h3>From: <?php echo $_SERVER['HTTP_HOST'];?></h3></div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<h5>You are viewing the
|
||||||
|
unreachable page or site!</h5>
|
||||||
|
<p><li>If you think this is a mistake here,</li></p>
|
||||||
|
<p><li>you can call me via these ways:</li></p>
|
||||||
|
<p><li>微信/QQ/钉钉: 18608981880</li></p>
|
||||||
|
<p><li>邮箱: fm453@lukegzs.com</li></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php //var_dump($_SERVER);?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
20
LICENSE
20
LICENSE
@ -1,9 +1,21 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2024 lukegzs
|
Copyright (c) 2024 hiluker.com
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
29
LICENSE.md
Executable file
29
LICENSE.md
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
Copyright © 2008 by Yii Software LLC (http://www.yiisoft.com)
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in
|
||||||
|
the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
* Neither the name of Yii Software LLC nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived
|
||||||
|
from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGE.
|
36
README.en.md
Normal file
36
README.en.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# yii-dacms
|
||||||
|
|
||||||
|
#### Description
|
||||||
|
基于YII2-advanced框架进行开发的数据内容管理系统
|
||||||
|
|
||||||
|
#### Software Architecture
|
||||||
|
Software architecture description
|
||||||
|
|
||||||
|
#### Installation
|
||||||
|
|
||||||
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
|
3. xxxx
|
||||||
|
|
||||||
|
#### Instructions
|
||||||
|
|
||||||
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
|
3. xxxx
|
||||||
|
|
||||||
|
#### Contribution
|
||||||
|
|
||||||
|
1. Fork the repository
|
||||||
|
2. Create Feat_xxx branch
|
||||||
|
3. Commit your code
|
||||||
|
4. Create Pull Request
|
||||||
|
|
||||||
|
|
||||||
|
#### Gitee Feature
|
||||||
|
|
||||||
|
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||||
|
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||||
|
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||||
|
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||||
|
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||||
|
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
38
README.md
38
README.md
@ -1,3 +1,37 @@
|
|||||||
# dacms
|
# yii-dacms
|
||||||
|
|
||||||
基于yii2-advanced框架开发的数据处理中台系统
|
#### 介绍
|
||||||
|
基于YII2-advanced框架进行开发的数据内容管理系统
|
||||||
|
|
||||||
|
#### 软件架构
|
||||||
|
软件架构说明
|
||||||
|
|
||||||
|
|
||||||
|
#### 安装教程
|
||||||
|
|
||||||
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
|
3. xxxx
|
||||||
|
|
||||||
|
#### 使用说明
|
||||||
|
|
||||||
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
|
3. xxxx
|
||||||
|
|
||||||
|
#### 参与贡献
|
||||||
|
|
||||||
|
1. Fork 本仓库
|
||||||
|
2. 新建 Feat_xxx 分支
|
||||||
|
3. 提交代码
|
||||||
|
4. 新建 Pull Request
|
||||||
|
|
||||||
|
|
||||||
|
#### 特技
|
||||||
|
|
||||||
|
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||||
|
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||||
|
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||||
|
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||||
|
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||||
|
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||||
|
8
YII.sublime-project
Normal file
8
YII.sublime-project
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"folders":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
39869
YII.sublime-workspace
Normal file
39869
YII.sublime-workspace
Normal file
File diff suppressed because one or more lines are too long
BIN
YII2改造开发手记.docx
Executable file
BIN
YII2改造开发手记.docx
Executable file
Binary file not shown.
BIN
YII2高级模板多入口单域名解决方案.docx
Executable file
BIN
YII2高级模板多入口单域名解决方案.docx
Executable file
Binary file not shown.
BIN
YII2高级模板多域名单入口解决方案.docx
Executable file
BIN
YII2高级模板多域名单入口解决方案.docx
Executable file
Binary file not shown.
1
addons-ctms/CTMS项目公用.txt
Executable file
1
addons-ctms/CTMS项目公用.txt
Executable file
@ -0,0 +1 @@
|
|||||||
|
将CTMS公用的Model等文件集中出来,但为了类似项目借用该模式,避免与common文件夹搞混,故放于此处。
|
18
addons-ctms/access.php
Executable file
18
addons-ctms/access.php
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-15T22:35:59+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-06-30T23:54:13+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
//以下设置用于解决跨域访问的CORS问题,顺便设置来路域名白名单
|
||||||
|
const ORIGINARR = [
|
||||||
|
'https://ctms.hiluker.cn',
|
||||||
|
'http://appgm.ctms.hiluker.cn',
|
||||||
|
'https://appgm.ctms.hiluker.cn',
|
||||||
|
'http://h5.ctms.hiluker.cn',
|
||||||
|
'https://h5.ctms.hiluker.cn',
|
||||||
|
'*' //开发中使用*,允许所有cors源。上线后注释掉
|
||||||
|
];
|
65
addons-ctms/config/citys.php
Executable file
65
addons-ctms/config/citys.php
Executable file
@ -0,0 +1,65 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: fm453
|
||||||
|
* @Date: 2018-11-22 10:19:29
|
||||||
|
* @Last Modified by: fm453
|
||||||
|
* @Last Modified time: 2019-10-24 17:20:02
|
||||||
|
* @Email: fm453@lukegzs.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
$citys=[];
|
||||||
|
$i=0;
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'三亚'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'广州'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'北京'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'哈尔滨'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'成都'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'上海'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'合肥'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'福州'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'郑州'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'西安'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'天津'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'海口'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'深圳'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'厦门'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'杭州'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'长春'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'南宁'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'昆明'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'武汉'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'长沙'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'南昌'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'宁波'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'贵阳'];
|
||||||
|
$i++;
|
||||||
|
$citys[$i] = ['id'=>$i,'name'=>'沈阳'];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'citys'=>$citys
|
||||||
|
];
|
31
addons-ctms/config/db-local.php
Executable file
31
addons-ctms/config/db-local.php
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-15T21:33:17+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-06-29T16:38:03+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
$config = [
|
||||||
|
'components' => [
|
||||||
|
'db' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=127.0.0.1;dbname=sass',
|
||||||
|
'username' => 'sass',
|
||||||
|
'password' => 'ejxsrxZCP34xNjF2',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
'ac' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=127.0.0.1;dbname=ctms',
|
||||||
|
'username' => 'ctms',
|
||||||
|
'password' => 'bm2a7BrJzWN1nSsk',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
return $config;
|
31
addons-ctms/config/db.php
Executable file
31
addons-ctms/config/db.php
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-16T20:41:55+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-16T20:41:58+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
$config = [
|
||||||
|
'components' => [
|
||||||
|
'db' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=127.0.0.1;dbname=dacms',
|
||||||
|
'username' => 'dacms',
|
||||||
|
'password' => 'CiwE5YbLnL7Yw8zs',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
'ac' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=127.0.0.1;dbname=ctms',
|
||||||
|
'username' => 'ctms',
|
||||||
|
'password' => 'cP45w8z7RCtHstst',
|
||||||
|
'charset' => 'utf8mb4',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
return $config;
|
41
addons-ctms/config/params-area.php
Executable file
41
addons-ctms/config/params-area.php
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$areas=[];
|
||||||
|
$areas['110000'] = "北京";
|
||||||
|
$areas['120000'] = "天津";
|
||||||
|
$areas['130000'] = "河北省";
|
||||||
|
$areas['140000'] = "山西省";
|
||||||
|
$areas['150000'] = "内蒙古自治区";
|
||||||
|
$areas['210000'] = "辽宁省";
|
||||||
|
$areas['220000'] = "吉林省";
|
||||||
|
$areas['230000'] = "黑龙江省";
|
||||||
|
$areas['310000'] = "上海";
|
||||||
|
$areas['320000'] = "江苏省";
|
||||||
|
$areas['330000'] = "浙江省";
|
||||||
|
$areas['340000'] = "安徽省";
|
||||||
|
$areas['350000'] = "福建省";
|
||||||
|
$areas['360000'] = "江西省";
|
||||||
|
$areas['370000'] = "山东省";
|
||||||
|
$areas['410000'] = "河南省";
|
||||||
|
$areas['420000'] = "湖北省";
|
||||||
|
$areas['430000'] = "湖南省";
|
||||||
|
$areas['440000'] = "广东省";
|
||||||
|
$areas['450000'] = "广西壮族自治区";
|
||||||
|
$areas['460000'] = "海南省";
|
||||||
|
$areas['500000'] = "重庆";
|
||||||
|
$areas['510000'] = "四川省";
|
||||||
|
$areas['520000'] = "贵州省";
|
||||||
|
$areas['530000'] = "云南省";
|
||||||
|
$areas['540000'] = "西藏自治区";
|
||||||
|
$areas['610000'] = "陕西省";
|
||||||
|
$areas['620000'] = "甘肃省";
|
||||||
|
$areas['630000'] = "青海省";
|
||||||
|
$areas['640000'] = "宁夏回族自治区";
|
||||||
|
$areas['650000'] = "新疆维吾尔自治区";
|
||||||
|
$areas['710000'] = "台湾省";
|
||||||
|
$areas['810000'] = "香港特别行政区";
|
||||||
|
$areas['820000'] = "澳门特别行政区";
|
||||||
|
$areas['990000'] = "海外";
|
||||||
|
return [
|
||||||
|
'regionAreas' => $areas
|
||||||
|
];
|
49
addons-ctms/config/params-car.php
Executable file
49
addons-ctms/config/params-car.php
Executable file
@ -0,0 +1,49 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: fm453
|
||||||
|
* @Date: 2019-09-21 19:51:07
|
||||||
|
* @Last Modified by: fm453
|
||||||
|
* @Last Modified time: 2019-09-21 19:57:07
|
||||||
|
* @Email: fm453@lukegzs.com
|
||||||
|
*/
|
||||||
|
$areas=[];
|
||||||
|
$areas['110000'] = "京";
|
||||||
|
$areas['120000'] = "津";
|
||||||
|
$areas['130000'] = "冀";
|
||||||
|
$areas['140000'] = "晋";
|
||||||
|
$areas['150000'] = "蒙";
|
||||||
|
$areas['210000'] = "辽";
|
||||||
|
$areas['220000'] = "吉";
|
||||||
|
$areas['230000'] = "黑";
|
||||||
|
$areas['310000'] = "沪";
|
||||||
|
$areas['320000'] = "苏";
|
||||||
|
$areas['330000'] = "浙";
|
||||||
|
$areas['340000'] = "皖";
|
||||||
|
$areas['350000'] = "闽";
|
||||||
|
$areas['360000'] = "赣";
|
||||||
|
$areas['370000'] = "鲁";
|
||||||
|
$areas['410000'] = "豫";
|
||||||
|
$areas['420000'] = "鄂";
|
||||||
|
$areas['430000'] = "湘";
|
||||||
|
$areas['440000'] = "粤";
|
||||||
|
$areas['450000'] = "桂";
|
||||||
|
$areas['460000'] = "琼";
|
||||||
|
$areas['500000'] = "渝";
|
||||||
|
$areas['510000'] = "川";
|
||||||
|
$areas['520000'] = "贵";
|
||||||
|
$areas['530000'] = "云";
|
||||||
|
$areas['540000'] = "藏";
|
||||||
|
$areas['610000'] = "陕";
|
||||||
|
$areas['620000'] = "甘";
|
||||||
|
$areas['630000'] = "青";
|
||||||
|
$areas['640000'] = "宁";
|
||||||
|
$areas['650000'] = "新";
|
||||||
|
// $areas['710000'] = "台湾省";
|
||||||
|
$areas['810000'] = "港";
|
||||||
|
$areas['820000'] = "澳";
|
||||||
|
// $areas['990000'] = "海外";
|
||||||
|
|
||||||
|
return [
|
||||||
|
'carRegion' => $areas
|
||||||
|
];
|
10
addons-ctms/config/params-letter.php
Executable file
10
addons-ctms/config/params-letter.php
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: fm453
|
||||||
|
* @Date: 2019-09-21 19:57:54
|
||||||
|
* @Last Modified by: fm453
|
||||||
|
* @Last Modified time: 2019-09-21 20:00:18
|
||||||
|
* @Email: fm453@lukegzs.com
|
||||||
|
*/
|
||||||
|
return ['letters'=>['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']];
|
160
addons-ctms/config/params-local.php
Executable file
160
addons-ctms/config/params-local.php
Executable file
@ -0,0 +1,160 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客科技(www.hiluker.cn) <Fm453>
|
||||||
|
# @Date: 1970-01-01T08:00:00+08:00
|
||||||
|
# @Email: fm453@hiluker.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-09T17:20:38+08:00
|
||||||
|
|
||||||
|
return [
|
||||||
|
'adminEmail' => 'fm453@lukegzs.com', //管理员邮箱
|
||||||
|
'developerWx' => '18608981880', //开发者微信
|
||||||
|
'fansFrom' => 'ctms', //主fans表from字段的约定值
|
||||||
|
//默认值组
|
||||||
|
'defaultAdminPassword' => 'Hi12345678', //默认的管理员密码
|
||||||
|
'defaultAdminAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||||
|
'defaultUserPassword' => '12345678', //默认的用户密码
|
||||||
|
'defaultUserAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||||
|
'defaultFansPassword' => '88888888', //默认的粉丝用户密码
|
||||||
|
'defaultSuperRoleId' => 1, //默认的超级管理员角色id
|
||||||
|
'defaultSuperAdminId' => 1, //默认的超级管理员id
|
||||||
|
'siteOpenTime' => '8:00', //上班时间
|
||||||
|
'siteCloseTime' => '20:00', //歇业时间
|
||||||
|
'defaultAttributeValue' => '(未设置)', //空值默认
|
||||||
|
'defaultActionColumnButtonOption' => ['class' => 'btn btn-white btn-xs'], //列表页操作按钮选项
|
||||||
|
//阿里大鱼短信接口
|
||||||
|
'aliDySms'=>[
|
||||||
|
'domains'=>['www.hiluker.com','api.ctms.hiluker.cn'],
|
||||||
|
'debug'=>false,
|
||||||
|
// 设置域名白名单,非名单内域名访问的,开启调试模式(不触发真实的短信发送操作,强制设定debug为true时除外)
|
||||||
|
|
||||||
|
'accessKeyId'=>'LTAIQrJFtHfqsyOt',
|
||||||
|
'accessKeySecret'=>'tvGieI3vNI7Si3imauCB4rJ3OX4AR8',
|
||||||
|
'sign'=> '嗨路客',
|
||||||
|
'reportQueueName'=>'Alicom-Queue-31737903-SmsReport',
|
||||||
|
//状态报告接收
|
||||||
|
'UpQueueName'=>'Alicom-Queue-31737903-SmsUp',
|
||||||
|
//上行消息接收
|
||||||
|
'tmpl'=>[
|
||||||
|
'vcode'=>'SMS_116560526', //常规操作验证码(5分钟有效)
|
||||||
|
// 您的验证码为${code},该验证码5分钟内有效,请妥善保管。
|
||||||
|
'infoChange'=>'SMS_116695050',//重要信息变更验证码
|
||||||
|
//验证码${code},您正在尝试变更重要信息,请妥善保管账户信息。
|
||||||
|
'passwdChange'=>'SMS_116695051', //修改密码验证码
|
||||||
|
// 验证码${code},您正在尝试修改登录密码,请妥善保管账户信息。
|
||||||
|
'regVerify'=>'SMS_116695052', //注册验证
|
||||||
|
// 验证码${code},您正在注册成为新用户,感谢您的支持!
|
||||||
|
'acBirthday'=>'SMS_175060008', //运车平台客户生日祝福
|
||||||
|
// 尊敬的${name}客户,今天是您的生日,${company}祝福您生日快乐!感谢您一直以来的支持;我们将持续努力,给您更好的运车体验。
|
||||||
|
'cwVcode'=>'SMS_175060662', //财务操作验证码
|
||||||
|
'acGongxue'=>'SMS_152288813', //宫雪群发通知地址变更
|
||||||
|
'shopOrderConfirmBuyer'=>'SMS_121905194', //商城订单确认通知下单人
|
||||||
|
// 亲爱的${username},您在商城${shopname}的订单${ordersn}已经确认,敬请登陆查看。
|
||||||
|
'shopOrderGm'=>'SMS_121910220', //商城订单知会管理员
|
||||||
|
// 尊敬的${username},您所管理的商城${shopname}有一张新订单${ordersn},请尽快跟进处理。
|
||||||
|
'shopOrderBuyer'=>'SMS_121850165', //商城订单知会下单人
|
||||||
|
// 亲爱的${username},您在商城${shopname}有一张新订单${ordersn},我们将尽快为您跟进处理。
|
||||||
|
'meVcode'=>'SMS_116695056', //身份验证验证码
|
||||||
|
// 验证码${code},您正在进行身份验证,打死不要告诉别人哦!
|
||||||
|
'meChangeVcode'=>'SMS_116695050', //重要信息变更验证码
|
||||||
|
'loginVcode'=>'SMS_116695054', //登陆确认验证码
|
||||||
|
// 验证码${code},您正在登录,若非本人操作,请勿泄露。
|
||||||
|
'addrNotice'=>'SMS_175050843', //托车地址知会
|
||||||
|
'msgAdded' => 'SMS_176528085', //留言通知
|
||||||
|
// 您的网站收到了新的留言,请及时查看。
|
||||||
|
'formSubmitTip'=>'SMS_176532953', //网站表单数据提醒
|
||||||
|
// 表单${formname}收到了新的反馈,请及时查看。
|
||||||
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
'amap'=>[
|
||||||
|
'key'=>'fea3f28a32780b33d97b2afb9a5236fe', //高德地图网页API-key
|
||||||
|
],
|
||||||
|
//平台ID
|
||||||
|
'siteId'=>10, //每个站点ID对应一套数据集
|
||||||
|
// 'app_id'=>1, //站点内允许存在多个应用
|
||||||
|
// 'pid'=>1, //多个应用共用某个平台数据集时,约定平台ID
|
||||||
|
'customerLevels' => [
|
||||||
|
0 => '中',
|
||||||
|
1 => '差',
|
||||||
|
2 => '良',
|
||||||
|
99 => '优',
|
||||||
|
], //用户评级
|
||||||
|
'attachSrc'=>'//'.$_SERVER['HTTP_HOST'], //附件远程地址
|
||||||
|
'attachDir'=>'/upload-ctms', //附件远程目录
|
||||||
|
'TruckStatus' => [
|
||||||
|
0 => '待入库',
|
||||||
|
1 => '正常',
|
||||||
|
2 => '检修',
|
||||||
|
3 => '保养',
|
||||||
|
4 => '装车中',
|
||||||
|
5 => '在途',
|
||||||
|
99 => '锁定',
|
||||||
|
], //板车状态
|
||||||
|
'TruckOnlineStatus' => [
|
||||||
|
0 => '待出发',
|
||||||
|
1 => '进行中',
|
||||||
|
99 => '已运达',
|
||||||
|
], //板车任务状态
|
||||||
|
'TruckCarsStatus' => [
|
||||||
|
0 => '待承运',
|
||||||
|
1 => '运输中',
|
||||||
|
80 => '报障待处理',
|
||||||
|
99 => '已运达',
|
||||||
|
], //小车在承运板车上的状态
|
||||||
|
'gender'=>['0'=>'未设置','1'=>'男','2'=>'女'], //性别
|
||||||
|
'CommonStatus'=>['0'=>'隐藏','1'=>'显示'], //常规状态集
|
||||||
|
'EmployeeStatus'=>['0'=>'离职','1'=>'在职'], //用户在职状态集
|
||||||
|
'DriverStatus'=>['0'=>'离职','1'=>'在职','2'=>'外援'], //司机状态集
|
||||||
|
'OrderStatus' => [
|
||||||
|
-1 => '已取消',
|
||||||
|
0 => '预备中',
|
||||||
|
1 => '协议签定',
|
||||||
|
2 => '运输中',
|
||||||
|
3 => '已运达',
|
||||||
|
4 => '已交车',
|
||||||
|
5 => '待承运',
|
||||||
|
6 => '待提车',
|
||||||
|
7 => '待入库', //与提车关联
|
||||||
|
99 => '完成',
|
||||||
|
], //订单状态
|
||||||
|
'OrderPreStatus' => [
|
||||||
|
-1 => '已取消',
|
||||||
|
0 => '预备中', //待分配跟进客服
|
||||||
|
1 => '跟进中', //客服跟进中
|
||||||
|
99 => '完成',
|
||||||
|
], //预约单状态
|
||||||
|
'AlbumStatus' => [
|
||||||
|
-1 => '已隐藏',
|
||||||
|
0 => '标准',
|
||||||
|
99 => '完结',
|
||||||
|
], //相册状态
|
||||||
|
'DefaultCarInsuranceValueMax'=>20, //默认车辆保额;万元
|
||||||
|
'DefaultCommissionMoreMax'=>100, //默认最多可多支付的佣金金额;元
|
||||||
|
'Paytype'=>[
|
||||||
|
0=>'现金',
|
||||||
|
1=>'微信扫码',
|
||||||
|
2=>'微信转账',
|
||||||
|
3=>'支付宝扫码',
|
||||||
|
4=>'支付宝转账',
|
||||||
|
5=>'银行卡转账',
|
||||||
|
6=>'对公转账',
|
||||||
|
7=>'挂账月结',
|
||||||
|
99=>'其他'
|
||||||
|
], //支付方式
|
||||||
|
'PayStatus'=>[
|
||||||
|
0=>'待确认',
|
||||||
|
1=>'已确认入账', //入账对关联金额数字有影响
|
||||||
|
-1=>'财务已驳回',
|
||||||
|
-2=>'确认冲红',
|
||||||
|
2=>'申请冲红',
|
||||||
|
99=>'仅确认不入账', //不入账则只做记录,不影响相关金额数字
|
||||||
|
], //支付状态集
|
||||||
|
'PayStatusRequireArr'=>[
|
||||||
|
1=>[0,-1,99],
|
||||||
|
-1=>[0,2],
|
||||||
|
-2=>[2],
|
||||||
|
99=>[0,-1],
|
||||||
|
], //费用单支付状态在财审时的前置状态要求
|
||||||
|
'H5Links'=>'//h5.ctms.localhost/',
|
||||||
|
];
|
156
addons-ctms/config/params.php
Executable file
156
addons-ctms/config/params.php
Executable file
@ -0,0 +1,156 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客科技(www.hiluker.cn) <Fm453>
|
||||||
|
# @Date: 1970-01-01T08:00:00+08:00
|
||||||
|
# @Email: fm453@hiluker.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-09T16:46:20+08:00
|
||||||
|
|
||||||
|
return [
|
||||||
|
'adminEmail' => 'fm453@lukegzs.com', //管理员邮箱
|
||||||
|
'developerWx' => '18608981880', //开发者微信
|
||||||
|
'fansFrom' => 'ctms', //主fans表from字段的约定值
|
||||||
|
//默认值组
|
||||||
|
'defaultAdminPassword' => 'Hi12345678', //默认的管理员密码
|
||||||
|
'defaultAdminAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||||
|
'defaultUserPassword' => '12345678', //默认的用户密码
|
||||||
|
'defaultUserAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||||
|
'defaultFansPassword' => '88888888', //默认的粉丝用户密码
|
||||||
|
'defaultSuperRoleId' => 1, //默认的超级管理员角色id
|
||||||
|
'defaultSuperAdminId' => 1, //默认的超级管理员id
|
||||||
|
'siteOpenTime' => '8:00', //上班时间
|
||||||
|
'siteCloseTime' => '20:00', //歇业时间
|
||||||
|
'defaultAttributeValue' => '(未设置)', //空值默认
|
||||||
|
'defaultActionColumnButtonOption' => ['class' => 'btn btn-white btn-xs'], //列表页操作按钮选项
|
||||||
|
//阿里大鱼短信接口
|
||||||
|
'aliDySms'=>[
|
||||||
|
'domains'=>['www.hiluker.com','api.ctms.hiluker.cn'],
|
||||||
|
'debug'=>false,
|
||||||
|
// 设置域名白名单,非名单内域名访问的,开启调试模式(不触发真实的短信发送操作,强制设定debug时除外)
|
||||||
|
'accessKeyId'=>'LTAIQrJFtHfqsyOt',
|
||||||
|
'accessKeySecret'=>'tvGieI3vNI7Si3imauCB4rJ3OX4AR8',
|
||||||
|
'sign'=>'嗨路客',
|
||||||
|
'reportQueueName'=>'Alicom-Queue-31737903-SmsReport', //状态报告接收
|
||||||
|
'UpQueueName'=>'Alicom-Queue-31737903-SmsUp', //上行消息接收
|
||||||
|
'tmpl'=>[
|
||||||
|
'vcode'=>'SMS_116560526', //常规操作验证码(5分钟有效)
|
||||||
|
// 您的验证码为${code},该验证码5分钟内有效,请妥善保管。
|
||||||
|
'infoChange'=>'SMS_116695050',//重要信息变更验证码
|
||||||
|
//验证码${code},您正在尝试变更重要信息,请妥善保管账户信息。
|
||||||
|
'passwdChange'=>'SMS_116695051', //修改密码验证码
|
||||||
|
// 验证码${code},您正在尝试修改登录密码,请妥善保管账户信息。
|
||||||
|
'regVerify'=>'SMS_116695052', //注册验证
|
||||||
|
// 验证码${code},您正在注册成为新用户,感谢您的支持!
|
||||||
|
'acBirthday'=>'SMS_175060008', //运车平台客户生日祝福
|
||||||
|
// 尊敬的${name}客户,今天是您的生日,${company}祝福您生日快乐!感谢您一直以来的支持;我们将持续努力,给您更好的运车体验。
|
||||||
|
'cwVcode'=>'SMS_175060662', //财务操作验证码
|
||||||
|
'acGongxue'=>'SMS_152288813', //宫雪群发通知地址变更
|
||||||
|
'shopOrderConfirmBuyer'=>'SMS_121905194', //商城订单确认通知下单人
|
||||||
|
// 亲爱的${username},您在商城${shopname}的订单${ordersn}已经确认,敬请登陆查看。
|
||||||
|
'shopOrderGm'=>'SMS_121910220', //商城订单知会管理员
|
||||||
|
// 尊敬的${username},您所管理的商城${shopname}有一张新订单${ordersn},请尽快跟进处理。
|
||||||
|
'shopOrderBuyer'=>'SMS_121850165', //商城订单知会下单人
|
||||||
|
// 亲爱的${username},您在商城${shopname}有一张新订单${ordersn},我们将尽快为您跟进处理。
|
||||||
|
'meVcode'=>'SMS_116695056', //身份验证验证码
|
||||||
|
// 验证码${code},您正在进行身份验证,打死不要告诉别人哦!
|
||||||
|
'meChangeVcode'=>'SMS_116695050', //重要信息变更验证码
|
||||||
|
'loginVcode'=>'SMS_116695054', //登陆确认验证码
|
||||||
|
// 验证码${code},您正在登录,若非本人操作,请勿泄露。
|
||||||
|
'addrNotice'=>'SMS_175050843', //托车地址知会
|
||||||
|
'msgAdded' => 'SMS_176528085', //留言通知
|
||||||
|
// 您的网站收到了新的留言,请及时查看。
|
||||||
|
'formSubmitTip'=>'SMS_176532953', //网站表单数据提醒
|
||||||
|
// 表单${formname}收到了新的反馈,请及时查看。
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'amap'=>[
|
||||||
|
'key'=>'fea3f28a32780b33d97b2afb9a5236fe',
|
||||||
|
],
|
||||||
|
//平台ID
|
||||||
|
'siteId'=>10, //每个站点ID对应一套数据集
|
||||||
|
// 'app_id'=>1, //站点内允许存在多个应用
|
||||||
|
// 'pid'=>1, //多个应用共用某个平台数据集时,约定平台ID
|
||||||
|
'customerLevels' => [
|
||||||
|
0 => '中',
|
||||||
|
1 => '差',
|
||||||
|
2 => '良',
|
||||||
|
99 => '优',
|
||||||
|
], //用户评级
|
||||||
|
'attachSrc'=>'//'.$_SERVER['HTTP_HOST'], //附件远程地址
|
||||||
|
'attachDir'=>'/upload-ctms', //附件远程目录
|
||||||
|
'TruckStatus' => [
|
||||||
|
0 => '待入库',
|
||||||
|
1 => '正常',
|
||||||
|
2 => '检修',
|
||||||
|
3 => '保养',
|
||||||
|
4 => '装车中',
|
||||||
|
5 => '在途',
|
||||||
|
99 => '锁定',
|
||||||
|
], //板车状态
|
||||||
|
'TruckOnlineStatus' => [
|
||||||
|
0 => '待出发',
|
||||||
|
1 => '进行中',
|
||||||
|
99 => '已运达',
|
||||||
|
], //板车任务状态
|
||||||
|
'TruckCarsStatus' => [
|
||||||
|
0 => '待承运',
|
||||||
|
1 => '运输中',
|
||||||
|
80 => '报障待处理',
|
||||||
|
99 => '已运达',
|
||||||
|
], //小车在承运板车上的状态
|
||||||
|
'gender'=>['0'=>'未设置','1'=>'男','2'=>'女'], //性别
|
||||||
|
'CommonStatus'=>['0'=>'隐藏','1'=>'显示'], //常规状态集
|
||||||
|
'EmployeeStatus'=>['0'=>'离职','1'=>'在职'], //用户在职状态集
|
||||||
|
'DriverStatus'=>['0'=>'离职','1'=>'在职','2'=>'外援'], //司机状态集
|
||||||
|
'OrderStatus' => [
|
||||||
|
-1 => '已取消',
|
||||||
|
0 => '预备中',
|
||||||
|
1 => '协议签定',
|
||||||
|
2 => '运输中',
|
||||||
|
3 => '已运达',
|
||||||
|
4 => '已交车',
|
||||||
|
5 => '待承运',
|
||||||
|
6 => '待提车',
|
||||||
|
7 => '待入库', //与提车关联
|
||||||
|
99 => '完成',
|
||||||
|
], //订单状态
|
||||||
|
'OrderPreStatus' => [
|
||||||
|
-1 => '已取消',
|
||||||
|
0 => '预备中', //待分配跟进客服
|
||||||
|
1 => '跟进中', //客服跟进中
|
||||||
|
99 => '完成',
|
||||||
|
], //预约单状态
|
||||||
|
'AlbumStatus' => [
|
||||||
|
-1 => '已隐藏',
|
||||||
|
0 => '标准',
|
||||||
|
99 => '完结',
|
||||||
|
], //相册状态
|
||||||
|
'DefaultCarInsuranceValueMax'=>20, //默认车辆保额;万元
|
||||||
|
'DefaultCommissionMoreMax'=>100, //默认最多可多支付的佣金金额;元
|
||||||
|
'Paytype'=>[
|
||||||
|
0=>'现金',
|
||||||
|
1=>'微信扫码',
|
||||||
|
2=>'微信转账',
|
||||||
|
3=>'支付宝扫码',
|
||||||
|
4=>'支付宝转账',
|
||||||
|
5=>'银行卡转账',
|
||||||
|
6=>'对公转账',
|
||||||
|
7=>'挂账月结',
|
||||||
|
99=>'其他'
|
||||||
|
], //支付方式
|
||||||
|
'PayStatus'=>[
|
||||||
|
0=>'待确认',
|
||||||
|
1=>'已确认入账', //入账对关联金额数字有影响
|
||||||
|
-1=>'财务已驳回',
|
||||||
|
-2=>'确认冲红',
|
||||||
|
2=>'申请冲红',
|
||||||
|
99=>'仅确认不入账', //不入账则只做记录,不影响相关金额数字
|
||||||
|
], //支付状态集
|
||||||
|
'PayStatusRequireArr'=>[
|
||||||
|
1=>[0,-1,99],
|
||||||
|
-1=>[0,2],
|
||||||
|
-2=>[2],
|
||||||
|
99=>[0,-1],
|
||||||
|
], //费用单支付状态在财审时的前置状态要求
|
||||||
|
'H5Links'=>'//h5.ctms.hiluker.com/', //前端H5链接
|
||||||
|
];
|
12
addons-ctms/config/version.php
Executable file
12
addons-ctms/config/version.php
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2024-07-09T16:39:24+08:00
|
||||||
|
# @Email: 393213759@qq.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-09T17:21:18+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
return [
|
||||||
|
'local_version' => '2.202407.001', //已弃用
|
||||||
|
];
|
10
addons-ctms/index.php
Executable file
10
addons-ctms/index.php
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-15T22:35:59+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-01T14:45:53+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
Yii::setAlias('@addons', __DIR__);
|
1
addons-ctms/models/.gitkeep
Executable file
1
addons-ctms/models/.gitkeep
Executable file
@ -0,0 +1 @@
|
|||||||
|
*
|
29
addons-ctms/models/AcAlbumPics.php
Executable file
29
addons-ctms/models/AcAlbumPics.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:13:08+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcAlbumPics extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_album_pics}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-ctms/models/AcAlbumVersion.php
Executable file
29
addons-ctms/models/AcAlbumVersion.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:13:29+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:13:29+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcAlbumVersion extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_album_version}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-ctms/models/AcAlbums.php
Executable file
29
addons-ctms/models/AcAlbums.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:13:20+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:13:20+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcAlbums extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_albums}}';
|
||||||
|
}
|
||||||
|
}
|
45
addons-ctms/models/AcCar.php
Executable file
45
addons-ctms/models/AcCar.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:13:38+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:13:38+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcCar extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_car}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcCarBrand.php
Executable file
45
addons-ctms/models/AcCarBrand.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:13:45+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:13:45+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcCarBrand extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_car_brand}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcCarOwner.php
Executable file
45
addons-ctms/models/AcCarOwner.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:13:51+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:13:51+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcCarOwner extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_car_owner}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcCarSeries.php
Executable file
45
addons-ctms/models/AcCarSeries.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:13:58+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:13:58+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcCarSeries extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_car_series}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcContact.php
Executable file
45
addons-ctms/models/AcContact.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:04+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:04+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcContact extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_contact}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcDriver.php
Executable file
45
addons-ctms/models/AcDriver.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:10+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:10+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcDriver extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_driver}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcEmployee.php
Executable file
45
addons-ctms/models/AcEmployee.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:16+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:16+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcEmployee extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_employee}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcFansExt.php
Executable file
45
addons-ctms/models/AcFansExt.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:23+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:23+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcFansExt extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_fans_ext}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcFeeDriver.php
Executable file
45
addons-ctms/models/AcFeeDriver.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:30+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:30+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcFeeDriver extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_fee_driver}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcFeeOrder.php
Executable file
45
addons-ctms/models/AcFeeOrder.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:36+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:36+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcFeeOrder extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_fee_order}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcGps.php
Executable file
45
addons-ctms/models/AcGps.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:41+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:41+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcGps extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_gps}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcGpsRoute.php
Executable file
45
addons-ctms/models/AcGpsRoute.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:46+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:46+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcGpsRoute extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_gps_route}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
27
addons-ctms/models/AcNews.php
Normal file
27
addons-ctms/models/AcNews.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
#
|
||||||
|
# @Author: fm453
|
||||||
|
# @Date: 2024/7/16
|
||||||
|
# @updated: 下午4:52
|
||||||
|
# @Email: 1280880631@qq.com
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcNews extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_news}}';
|
||||||
|
}
|
||||||
|
}
|
27
addons-ctms/models/AcNewsCat.php
Normal file
27
addons-ctms/models/AcNewsCat.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
#
|
||||||
|
# @Author: fm453
|
||||||
|
# @Date: 2024/7/16
|
||||||
|
# @updated: 下午4:50
|
||||||
|
# @Email: 1280880631@qq.com
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcNewsCat extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_news_cat}}';
|
||||||
|
}
|
||||||
|
}
|
27
addons-ctms/models/AcNotice.php
Normal file
27
addons-ctms/models/AcNotice.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
#
|
||||||
|
# @Author: fm453
|
||||||
|
# @Date: 2024/7/16
|
||||||
|
# @updated: 下午4:53
|
||||||
|
# @Email: 1280880631@qq.com
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcNotice extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_notice}}';
|
||||||
|
}
|
||||||
|
}
|
45
addons-ctms/models/AcOrder.php
Executable file
45
addons-ctms/models/AcOrder.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:51+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:51+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcOrder extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_order}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
30
addons-ctms/models/AcOrderDeliver.php
Executable file
30
addons-ctms/models/AcOrderDeliver.php
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:23+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:40:22+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcOrderDeliver extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交车单
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_order_deliver}}';
|
||||||
|
}
|
||||||
|
}
|
30
addons-ctms/models/AcOrderPickup.php
Executable file
30
addons-ctms/models/AcOrderPickup.php
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:23+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:38:18+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcOrderPickup extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提车单
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_order_pickup}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-ctms/models/AcOrderPre.php
Executable file
29
addons-ctms/models/AcOrderPre.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:11:34+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:15:01+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcOrderPre extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_order_pre}}';
|
||||||
|
}
|
||||||
|
}
|
30
addons-ctms/models/AcOrderRescue.php
Executable file
30
addons-ctms/models/AcOrderRescue.php
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:23+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:39:50+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcOrderRescue extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 救援板订单
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_order_rescue}}';
|
||||||
|
}
|
||||||
|
}
|
45
addons-ctms/models/AcOrderStatus.php
Executable file
45
addons-ctms/models/AcOrderStatus.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:07+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:15:07+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcOrderStatus extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_order_status}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcPlat.php
Executable file
45
addons-ctms/models/AcPlat.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:12+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:15:12+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcPlat extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_plat}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcStat.php
Executable file
45
addons-ctms/models/AcStat.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:17+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:15:17+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcStat extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_stat}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
46
addons-ctms/models/AcStore.php
Executable file
46
addons-ctms/models/AcStore.php
Executable file
@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:23+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:15:23+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcStore extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_store}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcStoreIncar.php
Executable file
45
addons-ctms/models/AcStoreIncar.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:27+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:15:27+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcStoreIncar extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_store_incar}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcTruck.php
Executable file
45
addons-ctms/models/AcTruck.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:34+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:15:34+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcTruck extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_truck}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcTruckCars.php
Executable file
45
addons-ctms/models/AcTruckCars.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:42+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:15:42+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcTruckCars extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_truck_cars}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcTruckOnline.php
Executable file
45
addons-ctms/models/AcTruckOnline.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:16:20+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:16:20+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcTruckOnline extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_truck_online}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcTruckRoute.php
Executable file
45
addons-ctms/models/AcTruckRoute.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:16:26+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:16:26+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcTruckRoute extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_truck_route}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcUserExt.php
Executable file
45
addons-ctms/models/AcUserExt.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:16:31+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:16:31+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcUserExt extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_user_ext}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
45
addons-ctms/models/AcWeituoren.php
Executable file
45
addons-ctms/models/AcWeituoren.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:16:37+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:17:50+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcWeituoren extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_weituoren}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
1012
addons-ctms/数据库表变动日志.sql
Executable file
1012
addons-ctms/数据库表变动日志.sql
Executable file
File diff suppressed because it is too large
Load Diff
1
addons-nativeapp/NativeApp项目公用.txt
Executable file
1
addons-nativeapp/NativeApp项目公用.txt
Executable file
@ -0,0 +1 @@
|
|||||||
|
将nativeapp公用的Model等文件集中出来,但为了类似项目借用该模式,避免与common文件夹搞混,故放于此处。
|
13
addons-nativeapp/access.php
Executable file
13
addons-nativeapp/access.php
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-15T22:35:59+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:40:55+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
//以下设置用于解决跨域访问的CORS问题,顺便设置来路域名白名单
|
||||||
|
const ORIGINARR = [
|
||||||
|
'*' //开发中使用*,允许所有cors源。上线后注释掉
|
||||||
|
];
|
31
addons-nativeapp/config/db-local.php
Executable file
31
addons-nativeapp/config/db-local.php
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-15T21:33:17+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-06-29T16:38:03+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
$config = [
|
||||||
|
'components' => [
|
||||||
|
'db' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=127.0.0.1;dbname=sass',
|
||||||
|
'username' => 'sass',
|
||||||
|
'password' => 'ejxsrxZCP34xNjF2',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
'napp' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=127.0.0.1;dbname=new_app',
|
||||||
|
'username' => 'new_app',
|
||||||
|
'password' => 'T4TASiwjkCFaYxP3',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
return $config;
|
31
addons-nativeapp/config/db.php
Executable file
31
addons-nativeapp/config/db.php
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-16T20:41:55+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-16T20:41:58+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
$config = [
|
||||||
|
'components' => [
|
||||||
|
'db' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=127.0.0.1;dbname=dacms',
|
||||||
|
'username' => 'dacms',
|
||||||
|
'password' => 'CiwE5YbLnL7Yw8zs',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
'ac' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=127.0.0.1;dbname=ctms',
|
||||||
|
'username' => 'ctms',
|
||||||
|
'password' => 'cP45w8z7RCtHstst',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
return $config;
|
129
addons-nativeapp/config/params-local.php
Executable file
129
addons-nativeapp/config/params-local.php
Executable file
@ -0,0 +1,129 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客科技(www.hiluker.cn) <Fm453>
|
||||||
|
# @Date: 1970-01-01T08:00:00+08:00
|
||||||
|
# @Email: fm453@hiluker.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-06-29T16:40:55+08:00
|
||||||
|
|
||||||
|
return [
|
||||||
|
'adminEmail' => 'fm453@lukegzs.com',
|
||||||
|
'developerWx' => '18608981880',
|
||||||
|
//默认值组
|
||||||
|
'defaultAdminPassword' => 'Hi12345678', //默认的管理员密码
|
||||||
|
'defaultAdminAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||||
|
'defaultUserPassword' => '12345678', //默认的用户密码
|
||||||
|
'defaultUserAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||||
|
'defaultFansPassword' => '88888888', //默认的粉丝用户密码
|
||||||
|
'defaultSuperRoleId' => 1, //默认的超级管理员角色id
|
||||||
|
'defaultSuperAdminId' => 1, //默认的超级管理员id
|
||||||
|
'siteOpenTime' => '8:00', //上班时间
|
||||||
|
'siteCloseTime' => '20:00', //歇业时间
|
||||||
|
'defaultAttributeValue' => '(未设置)', //空值默认
|
||||||
|
'defaultActionColumnButtonOption' => ['class' => 'btn btn-white btn-xs'], //列表页操作按钮选项
|
||||||
|
//阿里大鱼短信接口
|
||||||
|
'aliDySms'=>[
|
||||||
|
'accessKeyId'=>'LTAIQrJFtHfqsyOt',
|
||||||
|
'accessKeySecret'=>'tvGieI3vNI7Si3imauCB4rJ3OX4AR8',
|
||||||
|
'sign'=>'嗨路客',
|
||||||
|
'reportQueueName'=>'Alicom-Queue-31737903-SmsReport', //状态报告接收
|
||||||
|
'UpQueueName'=>'Alicom-Queue-31737903-SmsUp', //上行消息接收
|
||||||
|
'tmpl'=>[
|
||||||
|
'vcode'=>'SMS_116560526', //常规验证码
|
||||||
|
'acBirthday'=>'SMS_175060008', //运车平台客户生日祝福
|
||||||
|
'cwVcode'=>'SMS_175060662', //财务操作验证码
|
||||||
|
'acGongxue'=>'SMS_152288813', //宫雪群发通知地址变更
|
||||||
|
'shopOrderConfirmBuyer'=>'SMS_121905194', //商城订单确认通知下单人
|
||||||
|
'shopOrderGm'=>'SMS_121910220', //商城订单知会管理员
|
||||||
|
'shopOrderBuyer'=>'SMS_121850165', //商城订单知会下单人
|
||||||
|
'meVcode'=>'SMS_116695056', //身份验证验证码
|
||||||
|
'meChangeVcode'=>'SMS_116695050', //重要信息变更验证码
|
||||||
|
'loginVcode'=>'SMS_116695054', //登陆确认验证码
|
||||||
|
'addrNotice'=>'SMS_175050843', //托车地址知会
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'amap'=>[
|
||||||
|
'key'=>'fea3f28a32780b33d97b2afb9a5236fe', //高德地图网页API-key
|
||||||
|
],
|
||||||
|
//平台ID
|
||||||
|
'siteId'=>10, //每个站点ID对应一套数据集
|
||||||
|
// 'app_id'=>1, //站点内允许存在多个应用
|
||||||
|
// 'pid'=>1, //多个应用共用某个平台数据集时,约定平台ID
|
||||||
|
'customerLevels' => [
|
||||||
|
0 => '中',
|
||||||
|
1 => '差',
|
||||||
|
2 => '良',
|
||||||
|
99 => '优',
|
||||||
|
], //用户评级
|
||||||
|
'attachSrc'=>'//'.$_SERVER['HTTP_HOST'], //附件远程地址
|
||||||
|
'attachDir'=>'/upload-ctms', //附件远程目录
|
||||||
|
'TruckStatus' => [
|
||||||
|
0 => '待入库',
|
||||||
|
1 => '正常',
|
||||||
|
2 => '检修',
|
||||||
|
3 => '保养',
|
||||||
|
4 => '装车中',
|
||||||
|
5 => '在途',
|
||||||
|
99 => '锁定',
|
||||||
|
], //板车状态
|
||||||
|
'TruckOnlineStatus' => [
|
||||||
|
0 => '待出发',
|
||||||
|
1 => '进行中',
|
||||||
|
99 => '已运达',
|
||||||
|
], //板车任务状态
|
||||||
|
'TruckCarsStatus' => [
|
||||||
|
0 => '待承运',
|
||||||
|
1 => '运输中',
|
||||||
|
80 => '报障待处理',
|
||||||
|
99 => '已运达',
|
||||||
|
], //小车在承运板车上的状态
|
||||||
|
'gender'=>['0'=>'未设置','1'=>'男','2'=>'女'], //性别
|
||||||
|
'CommonStatus'=>['0'=>'隐藏','1'=>'显示'], //常规状态集
|
||||||
|
'EmployeeStatus'=>['0'=>'离职','1'=>'在职'], //用户在职状态集
|
||||||
|
'DriverStatus'=>['0'=>'离职','1'=>'在职','2'=>'外援'], //司机状态集
|
||||||
|
'OrderStatus' => [
|
||||||
|
-1 => '已取消',
|
||||||
|
0 => '预备中',
|
||||||
|
1 => '协议签定',
|
||||||
|
2 => '运输中',
|
||||||
|
3 => '已运达',
|
||||||
|
4 => '已交车',
|
||||||
|
5 => '待承运',
|
||||||
|
6 => '待提车',
|
||||||
|
7 => '待入库', //与提车关联
|
||||||
|
99 => '完成',
|
||||||
|
], //订单状态
|
||||||
|
'AlbumStatus' => [
|
||||||
|
-1 => '已隐藏',
|
||||||
|
0 => '标准',
|
||||||
|
99 => '完结',
|
||||||
|
], //相册状态
|
||||||
|
'DefaultCarInsuranceValueMax'=>20, //默认车辆保额;万元
|
||||||
|
'DefaultCommissionMoreMax'=>100, //默认最多可多支付的佣金金额;元
|
||||||
|
'Paytype'=>[
|
||||||
|
0=>'现金',
|
||||||
|
1=>'微信扫码',
|
||||||
|
2=>'微信转账',
|
||||||
|
3=>'支付宝扫码',
|
||||||
|
4=>'支付宝转账',
|
||||||
|
5=>'银行卡转账',
|
||||||
|
6=>'对公转账',
|
||||||
|
7=>'挂账月结',
|
||||||
|
99=>'其他'
|
||||||
|
], //支付方式
|
||||||
|
'PayStatus'=>[
|
||||||
|
0=>'待确认',
|
||||||
|
1=>'已确认入账', //入账对关联金额数字有影响
|
||||||
|
-1=>'财务已驳回',
|
||||||
|
-2=>'确认冲红',
|
||||||
|
2=>'申请冲红',
|
||||||
|
99=>'仅确认不入账', //不入账则只做记录,不影响相关金额数字
|
||||||
|
], //支付状态集
|
||||||
|
'PayStatusRequireArr'=>[
|
||||||
|
1=>[0,-1,99],
|
||||||
|
-1=>[0,2],
|
||||||
|
-2=>[2],
|
||||||
|
99=>[0,-1],
|
||||||
|
], //费用单支付状态在财审时的前置状态要求
|
||||||
|
'H5Links'=>'//h5.ctms.localhost/',
|
||||||
|
];
|
129
addons-nativeapp/config/params.php
Executable file
129
addons-nativeapp/config/params.php
Executable file
@ -0,0 +1,129 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客科技(www.hiluker.cn) <Fm453>
|
||||||
|
# @Date: 1970-01-01T08:00:00+08:00
|
||||||
|
# @Email: fm453@hiluker.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-17T11:05:55+08:00
|
||||||
|
|
||||||
|
return [
|
||||||
|
'adminEmail' => 'fm453@lukegzs.com',
|
||||||
|
'developerWx' => '18608981880',
|
||||||
|
//默认值组
|
||||||
|
'defaultAdminPassword' => 'Hi12345678', //默认的管理员密码
|
||||||
|
'defaultAdminAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||||
|
'defaultUserPassword' => '12345678', //默认的用户密码
|
||||||
|
'defaultUserAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||||
|
'defaultFansPassword' => '88888888', //默认的粉丝用户密码
|
||||||
|
'defaultSuperRoleId' => 1, //默认的超级管理员角色id
|
||||||
|
'defaultSuperAdminId' => 1, //默认的超级管理员id
|
||||||
|
'siteOpenTime' => '8:00', //上班时间
|
||||||
|
'siteCloseTime' => '20:00', //歇业时间
|
||||||
|
'defaultAttributeValue' => '(未设置)', //空值默认
|
||||||
|
'defaultActionColumnButtonOption' => ['class' => 'btn btn-white btn-xs'], //列表页操作按钮选项
|
||||||
|
//阿里大鱼短信接口
|
||||||
|
'aliDySms'=>[
|
||||||
|
'accessKeyId'=>'LTAIQrJFtHfqsyOt',
|
||||||
|
'accessKeySecret'=>'tvGieI3vNI7Si3imauCB4rJ3OX4AR8',
|
||||||
|
'sign'=>'嗨路客',
|
||||||
|
'reportQueueName'=>'Alicom-Queue-31737903-SmsReport', //状态报告接收
|
||||||
|
'UpQueueName'=>'Alicom-Queue-31737903-SmsUp', //上行消息接收
|
||||||
|
'tmpl'=>[
|
||||||
|
'vcode'=>'SMS_116560526', //常规验证码
|
||||||
|
'acBirthday'=>'SMS_175060008', //运车平台客户生日祝福
|
||||||
|
'cwVcode'=>'SMS_175060662', //财务操作验证码
|
||||||
|
'acGongxue'=>'SMS_152288813', //宫雪群发通知地址变更
|
||||||
|
'shopOrderConfirmBuyer'=>'SMS_121905194', //商城订单确认通知下单人
|
||||||
|
'shopOrderGm'=>'SMS_121910220', //商城订单知会管理员
|
||||||
|
'shopOrderBuyer'=>'SMS_121850165', //商城订单知会下单人
|
||||||
|
'meVcode'=>'SMS_116695056', //身份验证验证码
|
||||||
|
'meChangeVcode'=>'SMS_116695050', //重要信息变更验证码
|
||||||
|
'loginVcode'=>'SMS_116695054', //登陆确认验证码
|
||||||
|
'addrNotice'=>'SMS_175050843', //托车地址知会
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'amap'=>[
|
||||||
|
'key'=>'fea3f28a32780b33d97b2afb9a5236fe',
|
||||||
|
],
|
||||||
|
//平台ID
|
||||||
|
'siteId'=>10, //每个站点ID对应一套数据集
|
||||||
|
// 'app_id'=>1, //站点内允许存在多个应用
|
||||||
|
// 'pid'=>1, //多个应用共用某个平台数据集时,约定平台ID
|
||||||
|
'customerLevels' => [
|
||||||
|
0 => '中',
|
||||||
|
1 => '差',
|
||||||
|
2 => '良',
|
||||||
|
99 => '优',
|
||||||
|
], //用户评级
|
||||||
|
'attachSrc'=>'//'.$_SERVER['HTTP_HOST'], //附件远程地址
|
||||||
|
'attachDir'=>'/upload-ctms', //附件远程目录
|
||||||
|
'TruckStatus' => [
|
||||||
|
0 => '待入库',
|
||||||
|
1 => '正常',
|
||||||
|
2 => '检修',
|
||||||
|
3 => '保养',
|
||||||
|
4 => '装车中',
|
||||||
|
5 => '在途',
|
||||||
|
99 => '锁定',
|
||||||
|
], //板车状态
|
||||||
|
'TruckOnlineStatus' => [
|
||||||
|
0 => '待出发',
|
||||||
|
1 => '进行中',
|
||||||
|
99 => '已运达',
|
||||||
|
], //板车任务状态
|
||||||
|
'TruckCarsStatus' => [
|
||||||
|
0 => '待承运',
|
||||||
|
1 => '运输中',
|
||||||
|
80 => '报障待处理',
|
||||||
|
99 => '已运达',
|
||||||
|
], //小车在承运板车上的状态
|
||||||
|
'gender'=>['0'=>'未设置','1'=>'男','2'=>'女'], //性别
|
||||||
|
'CommonStatus'=>['0'=>'隐藏','1'=>'显示'], //常规状态集
|
||||||
|
'EmployeeStatus'=>['0'=>'离职','1'=>'在职'], //用户在职状态集
|
||||||
|
'DriverStatus'=>['0'=>'离职','1'=>'在职','2'=>'外援'], //司机状态集
|
||||||
|
'OrderStatus' => [
|
||||||
|
-1 => '已取消',
|
||||||
|
0 => '预备中',
|
||||||
|
1 => '协议签定',
|
||||||
|
2 => '运输中',
|
||||||
|
3 => '已运达',
|
||||||
|
4 => '已交车',
|
||||||
|
5 => '待承运',
|
||||||
|
6 => '待提车',
|
||||||
|
7 => '待入库', //与提车关联
|
||||||
|
99 => '完成',
|
||||||
|
], //订单状态
|
||||||
|
'AlbumStatus' => [
|
||||||
|
-1 => '已隐藏',
|
||||||
|
0 => '标准',
|
||||||
|
99 => '完结',
|
||||||
|
], //相册状态
|
||||||
|
'DefaultCarInsuranceValueMax'=>20, //默认车辆保额;万元
|
||||||
|
'DefaultCommissionMoreMax'=>100, //默认最多可多支付的佣金金额;元
|
||||||
|
'Paytype'=>[
|
||||||
|
0=>'现金',
|
||||||
|
1=>'微信扫码',
|
||||||
|
2=>'微信转账',
|
||||||
|
3=>'支付宝扫码',
|
||||||
|
4=>'支付宝转账',
|
||||||
|
5=>'银行卡转账',
|
||||||
|
6=>'对公转账',
|
||||||
|
7=>'挂账月结',
|
||||||
|
99=>'其他'
|
||||||
|
], //支付方式
|
||||||
|
'PayStatus'=>[
|
||||||
|
0=>'待确认',
|
||||||
|
1=>'已确认入账', //入账对关联金额数字有影响
|
||||||
|
-1=>'财务已驳回',
|
||||||
|
-2=>'确认冲红',
|
||||||
|
2=>'申请冲红',
|
||||||
|
99=>'仅确认不入账', //不入账则只做记录,不影响相关金额数字
|
||||||
|
], //支付状态集
|
||||||
|
'PayStatusRequireArr'=>[
|
||||||
|
1=>[0,-1,99],
|
||||||
|
-1=>[0,2],
|
||||||
|
-2=>[2],
|
||||||
|
99=>[0,-1],
|
||||||
|
], //费用单支付状态在财审时的前置状态要求
|
||||||
|
'H5Links'=>'//h5.ctms.hiluker.com/',
|
||||||
|
];
|
10
addons-nativeapp/index.php
Executable file
10
addons-nativeapp/index.php
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-15T22:35:59+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:41:01+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
Yii::setAlias('@addons', __DIR__);
|
1
addons-nativeapp/models/.gitkeep
Executable file
1
addons-nativeapp/models/.gitkeep
Executable file
@ -0,0 +1 @@
|
|||||||
|
*
|
29
addons-nativeapp/models/Appconfig.php
Executable file
29
addons-nativeapp/models/Appconfig.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:37:18+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Appconfig extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%appconfig}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Appversion.php
Executable file
29
addons-nativeapp/models/Appversion.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:13:20+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:37:29+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Appversion extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%appversion}}';
|
||||||
|
}
|
||||||
|
}
|
45
addons-nativeapp/models/Banner.php
Executable file
45
addons-nativeapp/models/Banner.php
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:04+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:37:32+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Banner extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%banner}}';
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function rules()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * @inheritdoc
|
||||||
|
// */
|
||||||
|
// public function attributeLabels()
|
||||||
|
// {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
}
|
29
addons-nativeapp/models/Fenlei.php
Executable file
29
addons-nativeapp/models/Fenlei.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:14:41+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:14:41+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Fenlei extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%fenlei}}';
|
||||||
|
}
|
||||||
|
}
|
27
addons-nativeapp/models/Gonggao.php
Executable file
27
addons-nativeapp/models/Gonggao.php
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:23+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:37:37+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Gonggao extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%gonggao}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Guidepage.php
Executable file
29
addons-nativeapp/models/Guidepage.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:15:34+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:37:46+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Guidepage extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%guidepage}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Launcher.php
Executable file
29
addons-nativeapp/models/Launcher.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:37:50+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Launcher extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%launcher}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Lianxiwom.php
Executable file
29
addons-nativeapp/models/Lianxiwom.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:37:55+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Lianxiwom extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%lianxiwom}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/News.php
Executable file
29
addons-nativeapp/models/News.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:38:00+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class News extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%news}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Newsimg.php
Executable file
29
addons-nativeapp/models/Newsimg.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:38:20+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Newsimg extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%newsimg}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Resou.php
Executable file
29
addons-nativeapp/models/Resou.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:38:36+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Resou extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%resou}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Role.php
Executable file
29
addons-nativeapp/models/Role.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:38:53+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Role extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%role}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Shoucang.php
Executable file
29
addons-nativeapp/models/Shoucang.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:39:10+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Shoucang extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%shoucang}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/User.php
Executable file
29
addons-nativeapp/models/User.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2022-05-09T18:13:08+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class AcAlbumPics extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('ac');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%ac_album_pics}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/UserRoles.php
Executable file
29
addons-nativeapp/models/UserRoles.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:39:44+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class UserRoles extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%user_roles}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Weihu.php
Executable file
29
addons-nativeapp/models/Weihu.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:40:24+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Weihu extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%weihu}}';
|
||||||
|
}
|
||||||
|
}
|
29
addons-nativeapp/models/Yijianfankui.php
Executable file
29
addons-nativeapp/models/Yijianfankui.php
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
# @Date: 2022-05-09T18:12:47+08:00
|
||||||
|
# @Email: fm453@lukegzs.com
|
||||||
|
# @Last modified by: fm453
|
||||||
|
# @Last modified time: 2024-07-03T22:40:46+08:00
|
||||||
|
# @Copyright: www.hiluker.cn
|
||||||
|
|
||||||
|
namespace addons\models;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\db\ActiveRecord;
|
||||||
|
|
||||||
|
class Yijianfankui extends ActiveRecord
|
||||||
|
{
|
||||||
|
//指定数据库
|
||||||
|
public static function getDb()
|
||||||
|
{
|
||||||
|
return Yii::$app->get('napp');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public static function tableName()
|
||||||
|
{
|
||||||
|
return '{{%yijianfankui}}';
|
||||||
|
}
|
||||||
|
}
|
356
addons-nativeapp/数据库表变动日志.sql
Executable file
356
addons-nativeapp/数据库表变动日志.sql
Executable file
@ -0,0 +1,356 @@
|
|||||||
|
/**
|
||||||
|
* @Author: 嗨噜客(三亚) <fm453>
|
||||||
|
* @Date: 2024-07-04T19:13:18+08:00
|
||||||
|
* @Email: 393213759@qq.com
|
||||||
|
* @Last modified by: fm453
|
||||||
|
* @Last modified time: 2024-07-04T19:13:18+08:00
|
||||||
|
* @Copyright: www.hiluker.cn
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
Navicat MySQL Data Transfer
|
||||||
|
|
||||||
|
Source Server : 本地
|
||||||
|
Source Server Type : MySQL
|
||||||
|
Source Server Version : 50724
|
||||||
|
Source Host : localhost:3306
|
||||||
|
Source Schema : news
|
||||||
|
|
||||||
|
Target Server Type : MySQL
|
||||||
|
Target Server Version : 50724
|
||||||
|
File Encoding : 65001
|
||||||
|
|
||||||
|
Date: 19/08/2023 21:31:52
|
||||||
|
*/
|
||||||
|
|
||||||
|
SET NAMES utf8mb4;
|
||||||
|
SET FOREIGN_KEY_CHECKS = 0;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for appconfig
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `appconfig`;
|
||||||
|
CREATE TABLE `appconfig` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`isShowLauncher` tinyint(1) NOT NULL DEFAULT 1 COMMENT '启动页显示开关',
|
||||||
|
`isShowGongGao` tinyint(1) NOT NULL DEFAULT 1 COMMENT '主页公告显示开关',
|
||||||
|
`isShowBanner` tinyint(1) NOT NULL DEFAULT 1 COMMENT '轮播图显示开关',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = MyISAM AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = FIXED;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of appconfig
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `appconfig` VALUES (1, 0, 0, 0);
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for appversion
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `appversion`;
|
||||||
|
CREATE TABLE `appversion` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`isqiangzhi` tinyint(1) NOT NULL DEFAULT 0 COMMENT '强制更新开关',
|
||||||
|
`banbenhao` int(11) NOT NULL COMMENT '版本号',
|
||||||
|
`banbenming` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '版本名',
|
||||||
|
`lianjie` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '下载链接',
|
||||||
|
`shuoming` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '有新版本,是否更新' COMMENT '更新说明',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = MyISAM AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of appversion
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `appversion` VALUES (1, 0, 1, '测试', 'http://192.168.2.103:8888/static/test.apk', '请确保以上下载链接地址http://192.168.2.103:8888/static/test.apk的IP地址是自己电脑的局域网IP地址');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for banner
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `banner`;
|
||||||
|
CREATE TABLE `banner` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`imgUrl` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '图片地址',
|
||||||
|
`jumpUrl` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'http://www.baidu.com' COMMENT '点击跳转地址',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = MyISAM AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of banner
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `banner` VALUES (1, '/static/test.bmp', 'http://www.baidu.com');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for comments
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `comments`;
|
||||||
|
CREATE TABLE `comments` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`uid` bigint(20) NULL DEFAULT 0 COMMENT '用户ID',
|
||||||
|
`touid` bigint(20) NULL DEFAULT 0 COMMENT '回复id',
|
||||||
|
`newsid` bigint(20) NULL DEFAULT 0 COMMENT '新闻id',
|
||||||
|
`commentid` bigint(20) NULL DEFAULT 0 COMMENT '评论id',
|
||||||
|
`parentid` bigint(20) NULL DEFAULT 0 COMMENT '父评论id',
|
||||||
|
`content` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '内容',
|
||||||
|
`likes` int(11) NULL DEFAULT 0 COMMENT '点赞数',
|
||||||
|
`addtime` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
|
||||||
|
`at_info` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '评论时被@用户的信息(json串)',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of comments
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for fenlei
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `fenlei`;
|
||||||
|
CREATE TABLE `fenlei` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`fenlei` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '新闻分类',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of fenlei
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `fenlei` VALUES (1, '资讯');
|
||||||
|
INSERT INTO `fenlei` VALUES (2, '攻略');
|
||||||
|
INSERT INTO `fenlei` VALUES (3, '公告');
|
||||||
|
INSERT INTO `fenlei` VALUES (4, '其他');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for gonggao
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `gonggao`;
|
||||||
|
CREATE TABLE `gonggao` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`content` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '公告内容',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = MyISAM AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of gonggao
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `gonggao` VALUES (1, '您好,为了您的财物安全,请您务必做好防范,勿轻信低价拉单,注意避免私下交易...');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for guidepage
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `guidepage`;
|
||||||
|
CREATE TABLE `guidepage` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`img` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '图片地址',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = MyISAM AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of guidepage
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `guidepage` VALUES (1, '/static/test.bmp');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for history
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `history`;
|
||||||
|
CREATE TABLE `history` (
|
||||||
|
`hid` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`newsid` bigint(20) NOT NULL COMMENT '新闻id',
|
||||||
|
`uid` bigint(20) NOT NULL COMMENT '用户ID',
|
||||||
|
PRIMARY KEY (`hid`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for launcher
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `launcher`;
|
||||||
|
CREATE TABLE `launcher` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`img` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '图片地址',
|
||||||
|
`showTime` int(11) NOT NULL DEFAULT 3 COMMENT '展示时间',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = MyISAM AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of launcher
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `launcher` VALUES (1, '/static/test.bmp', 3);
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for lianxiwom
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `lianxiwom`;
|
||||||
|
CREATE TABLE `lianxiwom` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`content` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '联系我们内容如客服电话:xxxx',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of lianxiwom
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `lianxiwom` VALUES (1, '客服电话:132-1111-1058');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for news
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `news`;
|
||||||
|
CREATE TABLE `news` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`mingcheng` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '新闻标题',
|
||||||
|
`leixing` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '新闻类型',
|
||||||
|
`liulanliang` bigint(20) NOT NULL DEFAULT 0 COMMENT '新闻浏览量销量',
|
||||||
|
`xiangqinghtml` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '新闻详情',
|
||||||
|
`isshangjia` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0上架1下架',
|
||||||
|
`time` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '发布日期',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT =1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of news
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for newsimg
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `newsimg`;
|
||||||
|
CREATE TABLE `newsimg` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`newsid` bigint(20) NOT NULL COMMENT '新闻id',
|
||||||
|
`img` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '新闻图片',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of newsimg
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for resou
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `resou`;
|
||||||
|
CREATE TABLE `resou` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '热搜关键词',
|
||||||
|
`addtime` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of resou
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for role
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `role`;
|
||||||
|
CREATE TABLE `role` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名字',
|
||||||
|
`desc` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '描述',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE,
|
||||||
|
UNIQUE INDEX `name`(`name`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of role
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `role` VALUES (1, 'ROLE_ADMIN', '超级管理员');
|
||||||
|
INSERT INTO `role` VALUES (2, 'ROLE_USER', '普通用户');
|
||||||
|
INSERT INTO `role` VALUES (3, 'ROLE_VIP', 'vip用户');
|
||||||
|
INSERT INTO `role` VALUES (4, 'ROLE_MANAGEMENT', '管理员');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for shoucang
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `shoucang`;
|
||||||
|
CREATE TABLE `shoucang` (
|
||||||
|
`hid` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`newsid` bigint(20) NOT NULL COMMENT '新闻id',
|
||||||
|
`uid` bigint(20) NOT NULL COMMENT '用户ID',
|
||||||
|
PRIMARY KEY (`hid`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of shoucang
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for user
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `user`;
|
||||||
|
CREATE TABLE `user` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`username` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '账号',
|
||||||
|
`password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码',
|
||||||
|
`sex` tinyint(2) NOT NULL DEFAULT 1 COMMENT '性别;1:男,2:女',
|
||||||
|
`birthday` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '生日',
|
||||||
|
`last_login_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '最后登录时间',
|
||||||
|
`score` int(11) NOT NULL DEFAULT 0 COMMENT '用户积分',
|
||||||
|
`coin` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '金币',
|
||||||
|
`balance` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '余额',
|
||||||
|
`create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '注册时间',
|
||||||
|
`user_status` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '用户状态;0:禁用,1:正常',
|
||||||
|
`user_nickname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户昵称',
|
||||||
|
`avatar` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户头像',
|
||||||
|
`addr` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户地址',
|
||||||
|
`last_login_ip` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '最后登录ip',
|
||||||
|
`more` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '扩展属性',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户表' ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of user
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `user` VALUES (1, 'fm453', '$2a$10$MSkMgo63VGdaw6cqOANRxeDG3NT6I20HNs792CPNNhvvMyxRccEwG', 1, '', '', 0, 0, 26.46, '', 1, '超级管理员', '', '', '', NULL);
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for user_roles
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `user_roles`;
|
||||||
|
CREATE TABLE `user_roles` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
|
||||||
|
`roles_id` int(11) NULL DEFAULT NULL COMMENT '角色id',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for weihu
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `weihu`;
|
||||||
|
CREATE TABLE `weihu` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`isweihu` tinyint(1) NOT NULL DEFAULT 0 COMMENT '维护开关',
|
||||||
|
`neirong` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '维护内容',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of weihu
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `weihu` VALUES (1, 0, '维护通知:为了更好的为您服务,本站正在升级维护中,因此带来不便深表歉意');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for yijianfankui
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `yijianfankui`;
|
||||||
|
CREATE TABLE `yijianfankui` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`username` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '反馈人账号',
|
||||||
|
`pic` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '反馈图片',
|
||||||
|
`content` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '反馈内容',
|
||||||
|
`xitongbanben` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户手机系统版本',
|
||||||
|
`shoujiming` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户手机名称',
|
||||||
|
`shijian` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '反馈时间',
|
||||||
|
`huifu` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '回复内容',
|
||||||
|
`ischuli` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0显示1不显示',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of yijianfankui
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
SET FOREIGN_KEY_CHECKS = 1;
|
1
admins/.htaccess
Executable file
1
admins/.htaccess
Executable file
@ -0,0 +1 @@
|
|||||||
|
|
31
admins/404.html
Executable file
31
admins/404.html
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>404-访问出错!</title>
|
||||||
|
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
|
||||||
|
<script src="//cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
|
||||||
|
<script src="//cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
||||||
|
</head>
|
||||||
|
<style>
|
||||||
|
body{background-color:#000;color:#00ff00;}
|
||||||
|
.container{border-radius:5px;padding:20px;}
|
||||||
|
.panel{background:transparent;}
|
||||||
|
pre{background-color:#000;color:#00ff00;border:1px dashed #39ed15;}
|
||||||
|
</style>
|
||||||
|
<body >
|
||||||
|
<div class="container" style="margin-top:9%;">
|
||||||
|
<div class="panel panel-danger">
|
||||||
|
<div class="panel-heading"><h3>报错:404</h3></div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<h5>您访问的页面未找到!</h5>
|
||||||
|
<p><li>如果您认为这是某个程序问题,</li></p>
|
||||||
|
<p><li>您可以通过以下方式联系网站技术方:</li></p>
|
||||||
|
<p><li>微信/QQ/钉钉: 18608981880</li></p>
|
||||||
|
<p><li>邮箱: fm453@lukegzs.com</li></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
25
admins/assets/AppAsset.php
Executable file
25
admins/assets/AppAsset.php
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace backend\assets;
|
||||||
|
|
||||||
|
use yii\web\AssetBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Main backend application asset bundle.
|
||||||
|
*/
|
||||||
|
class AppAsset extends AssetBundle
|
||||||
|
{
|
||||||
|
public $basePath = '@webroot';
|
||||||
|
public $baseUrl = '@web';
|
||||||
|
public $css = [
|
||||||
|
'css/site.css',
|
||||||
|
'css/login.min.css',
|
||||||
|
];
|
||||||
|
public $js = [
|
||||||
|
'js/hplus.min.js',
|
||||||
|
];
|
||||||
|
public $depends = [
|
||||||
|
'yii\web\YiiAsset',
|
||||||
|
'yii\bootstrap\BootstrapAsset',
|
||||||
|
];
|
||||||
|
}
|
15
admins/codeception.yml
Executable file
15
admins/codeception.yml
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
namespace: backend\tests
|
||||||
|
actor: Tester
|
||||||
|
paths:
|
||||||
|
tests: tests
|
||||||
|
log: tests/_output
|
||||||
|
data: tests/_data
|
||||||
|
helpers: tests/_support
|
||||||
|
settings:
|
||||||
|
bootstrap: _bootstrap.php
|
||||||
|
colors: true
|
||||||
|
memory_limit: 1024M
|
||||||
|
modules:
|
||||||
|
config:
|
||||||
|
Yii2:
|
||||||
|
configFile: 'config/test-local.php'
|
24
admins/components/ArticleRule.php
Executable file
24
admins/components/ArticleRule.php
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* User: Administrator
|
||||||
|
* Date: 2016-7-5
|
||||||
|
* Time: 16:10
|
||||||
|
* Description:
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace backend\components;
|
||||||
|
|
||||||
|
|
||||||
|
use Yii;
|
||||||
|
use yii\rbac\Rule;
|
||||||
|
|
||||||
|
|
||||||
|
class ArticleRule extends Rule
|
||||||
|
{
|
||||||
|
public $name = 'article';
|
||||||
|
public function execute($user, $item, $params)
|
||||||
|
{
|
||||||
|
// 这里先设置为false,逻辑上后面再完善
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
78
admins/components/Helper.php
Executable file
78
admins/components/Helper.php
Executable file
@ -0,0 +1,78 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: fm453
|
||||||
|
* @Date: 2021-09-08 00:25:51
|
||||||
|
* @Last Modified by: fm453
|
||||||
|
* @Last Modified time: 2021-09-08 14:42:11
|
||||||
|
* @Email: fm453@lukegzs.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace backend\components;
|
||||||
|
use common\models\CLog;
|
||||||
|
use backend\models\Adminer;
|
||||||
|
use common\models\User;
|
||||||
|
use common\models\Member;
|
||||||
|
use common\models\Fans;
|
||||||
|
use common\models\CAttachment;
|
||||||
|
use common\models\CSms;
|
||||||
|
use Yii;
|
||||||
|
|
||||||
|
class Helper {
|
||||||
|
|
||||||
|
public static function hello(){
|
||||||
|
echo 'hello';
|
||||||
|
}
|
||||||
|
|
||||||
|
//历史访客数
|
||||||
|
public static function getHistoryVisNum(){
|
||||||
|
$res = CLog::find()->count();
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
|
||||||
|
//最近一个月访问量
|
||||||
|
public static function getMonthHistoryVisNum(){
|
||||||
|
$LastMonth = strtotime("-1 month");
|
||||||
|
$res = CLog::find()->where(['>','create_time',$LastMonth])->count();
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
|
||||||
|
//运维人员总数
|
||||||
|
public static function getAdminerCount(){
|
||||||
|
$res = Adminer::find()->count();
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
|
||||||
|
//API接口站用户总数
|
||||||
|
public static function getApierCount(){
|
||||||
|
$res = User::find()->count();
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
|
||||||
|
//会员数据总数
|
||||||
|
public static function getMemberCount(){
|
||||||
|
$res = Member::find()->count();
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
|
||||||
|
//粉丝数据总数
|
||||||
|
public static function getFansCount(){
|
||||||
|
$res = Fans::find()->count();
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
|
||||||
|
//短信统计
|
||||||
|
public static function getSmsStat(){
|
||||||
|
$sms = CSms::find()->count();
|
||||||
|
$mobile = CSms::find()->groupBy('mobile')->count();
|
||||||
|
return ['sms'=>$sms,'mobile'=>$mobile];
|
||||||
|
}
|
||||||
|
|
||||||
|
//附件统计
|
||||||
|
public static function getAttachStat(){
|
||||||
|
$num = CAttachment::find()->count();
|
||||||
|
$size = CAttachment::find()->sum('filesize');
|
||||||
|
return ['num'=>$num, 'size'=>$size];
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
2
admins/config/bootstrap.php
Executable file
2
admins/config/bootstrap.php
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
<?php
|
||||||
|
Yii::setAlias('@backend', dirname(__DIR__));
|
16
admins/config/db-local.php
Executable file
16
admins/config/db-local.php
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$config = [
|
||||||
|
'components' => [
|
||||||
|
'db' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=120.79.11.71;dbname=dacms_dev',
|
||||||
|
'username' => 'dacms_dev',
|
||||||
|
'password' => 'HS8wRyTT2sKeLdAJ',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
return $config;
|
23
admins/config/db.php
Executable file
23
admins/config/db.php
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: fm453
|
||||||
|
* @Date: 2021-09-09 10:32:33
|
||||||
|
* @Last Modified by: fm453
|
||||||
|
* @Last Modified time: 2021-09-09 10:41:57
|
||||||
|
* @Email: fm453@lukegzs.com
|
||||||
|
*/
|
||||||
|
$config = [
|
||||||
|
'components' => [
|
||||||
|
'db' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=127.0.0.1;dbname=dacms',
|
||||||
|
'username' => 'dacms',
|
||||||
|
'password' => 'eydnsidc',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'tablePrefix' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
return $config;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user