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
588c8a89
authored
Dec 26, 2017
by
李洋
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed bug
parent
253536a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Http/Controllers/MessageApiController.php
app/Http/Controllers/MessageApiController.php
View file @
588c8a89
...
...
@@ -40,7 +40,7 @@ class MessageApiController extends Controller
$this
->
Export
(
11002
,
'请输入模板描述'
);
}
$is_dumplicated
=
DB
::
connection
(
'message'
)
->
table
(
'lie_msg_tpl'
)
->
where
(
'description'
,
$data
[
'description'
])
->
first
();
if
(
$is_dumplicated
!==
false
)
if
(
$is_dumplicated
!==
false
&&
empty
(
$insert_tpl_id
)
)
{
$this
->
Export
(
11022
,
'已存在相同模板描述,请更换描述内容'
);
}
...
...
@@ -209,7 +209,7 @@ class MessageApiController extends Controller
// Csrf($request);
$data
=
$request
->
input
();
$url
=
'http://api.liexin.com/msg/sendMessageByHandle'
;
// $url = 'http://szapi.ichunt.com/msg/sendMessageByHandle';
$params
=
[];
$params
[
'channels'
]
=
$data
[
'channels'
];
...
...
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