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
1643e76c
Commit
1643e76c
authored
Mar 05, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并之后出现的问题解决
parent
4bf33436
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
133 deletions
+0
-133
config.php
application/config.php
+0
-6
Auth.php
application/index/controller/Auth.php
+0
-35
Basic.php
application/index/extend/Basic.php
+0
-15
index.html
application/index/view/auth/index.html
+0
-31
AAgents.php
application/model/AAgents.php
+0
-43
route.php
application/route.php
+0
-3
No files found.
application/config.php
View file @
1643e76c
...
@@ -13,16 +13,10 @@ define('IMG_PATH','https://admin.tonglianjituan.com/houseImg/');
...
@@ -13,16 +13,10 @@ define('IMG_PATH','https://admin.tonglianjituan.com/houseImg/');
define
(
'LOCAL_IMG_HOST'
,
'/resource/lib/Attachments/'
);
define
(
'LOCAL_IMG_HOST'
,
'/resource/lib/Attachments/'
);
define
(
'PAGESIZE'
,
15
);
//分页每页条数
define
(
'PAGESIZE'
,
15
);
//分页每页条数
define
(
'ADMIN_URL_TL'
,
'https://admin.tonglianjituan.com/'
);
//B端网址
define
(
'ADMIN_URL_TL'
,
'https://admin.tonglianjituan.com/'
);
//B端网址
<<<<<<<
HEAD
//define('TEST_ADMIN_URL_TL','https://dev.tonglianjituan.com/'); //B端网址
//define('TEST_ADMIN_URL_TL','https://dev.tonglianjituan.com/'); //B端网址
define
(
'CURRENT_URL'
,
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
DS
);
//取当前域名地址
define
(
'CURRENT_URL'
,
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
DS
);
//取当前域名地址
define
(
'HEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'head_portrait/'
);
//头像地址
define
(
'HEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'head_portrait/'
);
//头像地址
define
(
'CHAT_IMG_URL'
,
CURRENT_URL
.
'static'
.
DS
.
'chat_image/'
);
//聊天图片地址
define
(
'CHAT_IMG_URL'
,
CURRENT_URL
.
'static'
.
DS
.
'chat_image/'
);
//聊天图片地址
=======
define
(
'CURRENT_URL'
,
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
'/'
);
//取当前域名地址
define
(
'HEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'head_portrait/'
);
//用户头像地址
define
(
'AGENTHEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'agent_head_portrait/'
);
//经纪人头像地址
>>>>>>>
test
-
hujun1
.
15
-
111
define
(
'CK_IMG_URL'
,
CURRENT_URL
.
'/resource/lib/Attachments/'
);
//ck 资源文件
define
(
'CK_IMG_URL'
,
CURRENT_URL
.
'/resource/lib/Attachments/'
);
//ck 资源文件
define
(
'_POOLKEY'
,
'FC100000022056027'
);
//隐私号码
define
(
'_POOLKEY'
,
'FC100000022056027'
);
//隐私号码
define
(
'_TLSYPoolKey'
,
'FC100000022056027'
);
//隐私号码池
define
(
'_TLSYPoolKey'
,
'FC100000022056027'
);
//隐私号码池
...
...
application/index/controller/Auth.php
View file @
1643e76c
...
@@ -211,41 +211,6 @@ class Auth extends Basic
...
@@ -211,41 +211,6 @@ class Auth extends Basic
// echo $group_id;
// echo $group_id;
// exit;
// exit;
if
(
$this
->
request
->
isPost
())
{
if
(
$this
->
request
->
isPost
())
{
=======
public
function
test
(){
// $this->authRuleModel = new AuthRule();
// dump($this->authRuleModel);die;
// $list= $this->authRuleModel->find();
// return $this->response(200, '', $list);
}
/**
* 权限分配
* @param integer $group_id 组ID
* @return [type] [description]
* @date 2018-01-22
* @author zfc
*/
public
function
accessLook
(
$group_id
=
0
){
$table
=
New
AuthGroup
();
$table2
=
New
AuthRule
();
$data
[
'title'
]
=
'权限分配'
;
// echo $group_id;
// exit;
<<<<<<<
HEAD
if
(
IS_POST
&&
$group_id
=
0
)
{
=======
<<<<<<<
HEAD
if
(
IS_POST
&&
$group_id
=
0
)
{
>>>>>>>
8e62
fd6
...
合并test
=======
if
(
IS_POST
&&
$group_id
==
0
)
{
>>>>>>>
cb14688
...
编辑5
>>>>>>>
test
-
hujun1
.
15
-
111
//添加or修改
//添加or修改
$data
[
'id'
]
=
$group_id
;
$data
[
'id'
]
=
$group_id
;
$menu_auth
=
input
(
'post.menu_auth/a'
,
''
);
//获取所有授权菜单id
$menu_auth
=
input
(
'post.menu_auth/a'
,
''
);
//获取所有授权菜单id
...
...
application/index/extend/Basic.php
View file @
1643e76c
...
@@ -69,21 +69,6 @@ class Basic extends Controller
...
@@ -69,21 +69,6 @@ class Basic extends Controller
$this
->
userAuth
(
$requestPath
);
$this
->
userAuth
(
$requestPath
);
}
}
/**
* 权限判定
*
* @param $requestPath
* @return Response
*/
public
function
userAuth
(
$requestPath
){
$session
=
Session
::
get
(
"userinfo.nav"
);
$rule
=
0
;
if
(
$session
!=
NULL
)
{
//判断当前控制器用户是否拥有进入权限
foreach
(
$session
as
$v
){
}
/**
/**
* 权限判定
* 权限判定
* @param $requestPath
* @param $requestPath
...
...
application/index/view/auth/index.html
View file @
1643e76c
{layout name="global/frame_tpl" /}
{layout name="global/frame_tpl" /}
<
<<<<<<
HEAD
<
h4
>
权限管理
</h4>
<a
href=
"/index/roleedit"
>
添加角色
</a>
<input
type=
"hidden"
class=
"page-load"
id=
"auth"
/>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
ID
</th>
<th
class=
"text-center"
>
角色名
</th>
<th
class=
"text-center"
>
描述
</th>
<th
class=
"text-center"
>
状态
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
id=
"auth_list"
>
</tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right pageinfo"
id=
"pagediv"
>
</div>
</div>
</div>
=======
<!--角色管理页面-->
<!--角色管理页面-->
<input
type=
"hidden"
class=
"page-load"
id=
"auth"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"auth"
/>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
...
@@ -157,4 +127,3 @@
...
@@ -157,4 +127,3 @@
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /.modal -->
</div>
</div>
>>>>>>> test-hujun1.15-111
application/model/AAgents.php
View file @
1643e76c
...
@@ -296,46 +296,4 @@ public function saveList(){
...
@@ -296,46 +296,4 @@ public function saveList(){
->
select
();
->
select
();
return
$data
;
return
$data
;
}
}
/**
*检查重复
*
*/
public
function
repetition
(
$name
,
$key
){
$r
=
$this
->
field
(
$name
)
->
where
(
$name
,
'='
,
$key
)
->
select
();
//$this->getLastSql();
if
(
$r
){
return
true
;
}
else
{
return
false
;
}
}
//更新数据
public
function
saveStatus
(
$name
,
$key
,
$ids
){
$r
=
$this
->
save
([
$name
,
$key
],[
"id"
,
'in'
,
$ids
]);
return
$r
;
}
//删除数据
public
function
delUid
(
$name
,
$ids
){
$this
->
where
(
$name
,
'in'
,
$ids
)
->
delete
();
}
//通过ids批量添加数据
public
function
addAllAccess
(
$ids
,
$data
){
$idarr
=
explode
(
$ids
);
if
(
is_array
(
$idarr
)){
$arr
=
array
();
foreach
(
$idarr
as
$v
){
$data
[
'uid'
]
=
$v
;
$arr
[]
=
$data
;
}
$r
=
$this
->
saveAll
(
$arr
);
}
else
{
$data
[
'uid'
]
=
$ids
;
$r
=
$this
->
save
(
$data
);
}
return
$r
;
}
}
}
\ No newline at end of file
application/route.php
View file @
1643e76c
...
@@ -289,6 +289,4 @@ Route::group('broker', [
...
@@ -289,6 +289,4 @@ Route::group('broker', [
'agentsPhone'
=>
[
'api_broker/CellPhone/agentsPhone'
,
[
'method'
=>
'get|post'
]
],
//获取经纪人拨打界面手机号
'agentsPhone'
=>
[
'api_broker/CellPhone/agentsPhone'
,
[
'method'
=>
'get|post'
]
],
//获取经纪人拨打界面手机号
]);
]);
Route
::
group
(
'task'
,[
//Route::miss('api/index/miss');//处理错误的url
//Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
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