Commit 588c8a89 by 李洋

fixed bug

parent 253536a8
Showing with 2 additions and 2 deletions
......@@ -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'];
......
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