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
771db551
authored
Dec 18, 2017
by
李洋
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
dacdde13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
app/Http/Controllers/MessageApiController.php
app/Http/Controllers/MessageApiController.php
View file @
771db551
...
...
@@ -52,7 +52,7 @@ class MessageApiController extends Controller
$tpl_model
[
'creater'
]
=
$data
[
'creater'
];
// $tpl_model['obj_user'] = $data['obj_user'];
$tpl_model
[
'msg_type'
]
=
$data
[
'msg_type'
];
//添加事务
if
(
empty
(
$tpl_model
[
'tpl_id'
]))
{
$tpl_model
[
'create_time'
]
=
time
();
$tpl_model
[
'update_time'
]
=
time
();
...
...
@@ -119,6 +119,7 @@ class MessageApiController extends Controller
$chn_tpl_model_sms
=
[];
$chn_tpl_model_sms
[
'channel_tpl_id'
]
=
$data
[
'sms_channel_tpl_id'
];
$chn_tpl_model_sms
[
'channel_type'
]
=
$data
[
'sms_channel_type'
];
$chn_tpl_model_sms
[
'content'
]
=
$data
[
'sms_content'
];
$chn_tpl_model_sms
[
'tpl_id'
]
=
$insert_tpl_id
;
if
(
empty
(
$chn_tpl_model_sms
[
'channel_tpl_id'
]))
{
...
...
@@ -201,8 +202,9 @@ class MessageApiController extends Controller
{
// Csrf($request);
$data
=
$request
->
input
();
$url
=
'http://api.liexin.com/msg/sendMessageByHandle'
;
$params
=
[];
$params
[
'channels'
]
=
$data
[
'channels'
];
$params
[
'msg_type'
]
=
$data
[
'msg_type'
];
...
...
@@ -224,8 +226,8 @@ class MessageApiController extends Controller
$params
[
'pf'
]
=
1
;
$params
[
'k1'
]
=
$check
[
'k1'
];
$params
[
'k2'
]
=
$check
[
'k2'
];
$response
=
json_decode
(
curl
(
$url
,
$params
,
1
),
true
);
$this
->
Export
(
$response
[
'err_code'
],
$response
[
'err_msg'
]);
}
...
...
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