Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
00ca5331
Commit
00ca5331
authored
Jan 15, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型修改
parent
81f989bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
26 deletions
+16
-26
database.php
application/database.php
+8
-4
AuthGroupAccess.php
application/model/AuthGroupAccess.php
+3
-10
AuthRule.php
application/model/AuthRule.php
+5
-12
No files found.
application/database.php
View file @
00ca5331
...
...
@@ -13,15 +13,19 @@ return [
// 数据库类型
'type'
=>
'mysql'
,
// 服务器地址
'hostname'
=>
'101.132.186.250'
,
// 'hostname' => '101.132.186.250',
'hostname'
=>
'127.0.0.1'
,
// 数据库名
'database'
=>
'db_tongliandichan'
,
// 用户名
'username'
=>
'tldc_online'
,
// 'username' => 'tldc_online',
'username'
=>
'root'
,
// 密码
'password'
=>
'Fujuhaofang123'
,
// 'password' => 'Fujuhaofang123',
'password'
=>
'123456'
,
// 端口
'hostport'
=>
'3308'
,
// 'hostport' => '3308',
'hostport'
=>
''
,
// 连接dsn
'dsn'
=>
''
,
// 数据库连接参数
...
...
application/model/AuthGroupAccess.php
View file @
00ca5331
<?php
// 权限模型
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2017 http://www.eacoo123.com, All rights reserved.
// +----------------------------------------------------------------------
// | [EacooPHP] 并不是自由软件,可免费使用,未经许可不能去掉EacooPHP相关版权。
// | 禁止在EacooPHP整体或任何部分基础上发展任何派生、修改或第三方版本用于重新分发
// +----------------------------------------------------------------------
// | Author: 心云间、凝听 <981248356@qq.com>
// +----------------------------------------------------------------------
// 权限模型
namespace
app\admin\model
;
use
app\common\model\Base
;
use
think\Model
;
class
AuthGroupAccess
extends
Base
{
...
...
application/model/AuthRule.php
View file @
00ca5331
<?php
// 权限规则模型
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2017 http://www.eacoo123.com, All rights reserved.
// +----------------------------------------------------------------------
// | [EacooPHP] 并不是自由软件,可免费使用,未经许可不能去掉EacooPHP相关版权。
// | 禁止在EacooPHP整体或任何部分基础上发展任何派生、修改或第三方版本用于重新分发
// +----------------------------------------------------------------------
// | Author: 心云间、凝听 <981248356@qq.com>
// +----------------------------------------------------------------------
namespace
app\admin\model
;
//权限规则模型
use
app\common\model\Base
;
namespace
app\model
;
class
AuthRule
extends
Base
use
think\Model
;
class
AuthRule
extends
Model
{
// 设置完整的数据表(包含前缀)
// protected $table = 'think_access';
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment