Commit 771db551 by 李洋

111

parent dacdde13
Showing with 5 additions and 3 deletions
......@@ -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']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment