Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a3d6785e
authored
Dec 27, 2017
by
李洋
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1、权限系统配置文件
parent
e9771a85
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
7 deletions
app/Http/Controllers/MessageController.php
config/perm.php
resources/views/message/addtemplate.blade.php
resources/views/message/allhistorylist.blade.php
resources/views/message/manualhistorylist.blade.php
resources/views/message/sendmanualmessage.blade.php
resources/views/message/templatelist.blade.php
app/Http/Controllers/MessageController.php
View file @
a3d6785e
...
...
@@ -8,6 +8,7 @@
namespace
App\Http\Controllers
;
use
ClassPreloader\Config
;
use
Illuminate\Http\Request
;
use
App\Http\Requests
;
use
DB
;
...
...
@@ -687,8 +688,11 @@ class MessageController extends Controller
{
$perms_str
=
implode
(
','
,
$perms_arr
);
$uid
=
$request
->
user
->
userId
;
$bid
=
8
;
$url
=
"http://perm.liexin.net/api/check/
$uid
/
$bid
/?perms=
$perms_str
"
;
// $bid = 8;
// $url = "http://perm.liexin.net/api/check/$uid/$bid/?perms=$perms_str";
$bid
=
Config
(
'perm.bid'
);
$perm_url
=
Config
(
'perm.url'
);
$url
=
$perm_url
.
"/api/check/
$uid
/
$bid
/?perms=
$perms_str
"
;
$res
=
json_decode
(
curl
(
$url
),
true
);
if
(
!
$res
[
'retcode'
])
{
...
...
config/perm.php
0 → 100644
View file @
a3d6785e
<?php
/**
* Created by PhpStorm.
* User: leo
* Date: 2017/12/27
* Time: 16:10
*/
return
[
'bid'
=>
8
,
'url'
=>
"http://perm.liexin.net"
,
'消息管理'
=>
[
'消息模板列表'
=>
[
'template_check'
],
'新增消息模板'
=>
[
'template_create'
,
'template_edit'
],
'手动消息历史'
=>
[
'manualhistorylist_check'
],
'手动发送消息'
=>
[
'manualmessage_edit'
,
'manualmessage_send'
],
'全部历史消息'
=>
[
'allhistorylist_check'
],
],
];
\ No newline at end of file
resources/views/message/addtemplate.blade.php
View file @
a3d6785e
...
...
@@ -266,7 +266,7 @@
<div
style=
"text-align: center"
>
<label
style=
"margin-top: 30px"
>
对不起,您没有权限查看此页面
</label>
<div>
<a
href=
"
http://perm.liexin.net/page/business/8/request/template_create
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
<a
href=
"
{{ Config('perm.url').'/page/business/'.Config('perm.bid').'/request/template_create' }}
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
</div>
</div>
@endif
\ No newline at end of file
resources/views/message/allhistorylist.blade.php
View file @
a3d6785e
...
...
@@ -180,7 +180,7 @@
<div
style=
"text-align: center"
>
<label
style=
"margin-top: 30px"
>
对不起,您没有权限查看此页面
</label>
<div>
<a
href=
"
http://perm.liexin.net/page/business/8/request/allhistorylist_check
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
<a
href=
"
{{ Config('perm.url').'/page/business/'.Config('perm.bid').'/request/allhistorylist_check' }}
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
</div>
</div>
@endif
...
...
resources/views/message/manualhistorylist.blade.php
View file @
a3d6785e
...
...
@@ -116,7 +116,7 @@
<div
style=
"text-align: center"
>
<label
style=
"margin-top: 30px"
>
对不起,您没有权限查看此页面
</label>
<div>
<a
href=
"
http://perm.liexin.net/page/business/8/request/manualhistorylist_check
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
<a
href=
"
{{ Config('perm.url').'/page/business/'.Config('perm.bid').'/request/manualhistorylist_check' }}
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
</div>
</div>
@endif
resources/views/message/sendmanualmessage.blade.php
View file @
a3d6785e
...
...
@@ -301,7 +301,7 @@
<div
style=
"text-align: center"
>
<label
style=
"margin-top: 30px"
>
对不起,您没有权限查看此页面
</label>
<div>
<a
href=
"
http://perm.liexin.net/page/business/8/request/manualmessage_send
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
<a
href=
"
{{ Config('perm.url').'/page/business/'.Config('perm.bid').'/request/manualmessage_send' }}
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
</div>
</div>
@endif
\ No newline at end of file
resources/views/message/templatelist.blade.php
View file @
a3d6785e
...
...
@@ -91,7 +91,7 @@
<div
style=
"text-align: center"
>
<label
style=
"margin-top: 30px"
>
对不起,您没有权限查看此页面
</label>
<div>
<a
href=
"
http://perm.liexin.net/page/business/8/request/template_check
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
<a
href=
"
{{ Config('perm.url').'/page/business/'.Config('perm.bid').'/request/template_check' }}
"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
</div>
</div>
@endif
...
...
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