<commit_before><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>轻会议--推送消息</title>
    <include file="Base/head" />

    <link href="__PUBLIC__/umeditor/themes/default/css/umeditor.css"
          rel="stylesheet">
</head>

<body style="background-color: #EDEFF1;">

<div class="container-fluid" style="margin-top: 30px;">
    <div class="row-fluid">
        <div class="col-xs-12"></div>
    </div>


    <include file="Base/menu" />
</div>



<div class="row-fluid">
    <div class="col-xs-1"></div>
    <div class="col-xs-10">


        <div class="row demo-samples">
            <div class="col-xs-3">
                <include file="Base/meetmenu" />
            </div>
            <!-- /.col-xs-4 -->
            <div class="col-xs-9" style="border-color: #fff;">

                <div class="meet" id="meet">
                    <input type="hidden" id='to' value="{$Meet.id}">
                    <div class="meet meet-title">推送消息</div>
                    <div class="meet meet-title">
                        <textarea id="content" class="form-control login-field"
                                  style="height: 238px; width: 100%;" placeholder="输入内容 不要超过250个汉字"
                                  style="height: 42px;"></textarea>
                    </div>
                    <div class="meet meet-title" align="right">
                        <br />
                        <a id="btn-send"
                           class="btn btn-block btn-lg btn-primary">发送</a>
                    </div>

                </div>

            </div>
        </div>
    </div>
    <div class="col-xs-1"></div>
</div>
<include file="Base/foot" />
<script>
    (function($) {
        var isSending = false;
        $("#btn-send").on("click",function(){
            if(isSending){
                return;
            }
            isSending =true;
            data=qc.form().add("to").add("content").add("type",2).create();
            console.log(data);
            qc.debug = true;
            $(this).text('发送中....');
            qc.post("/Home/PushMessage/create",data,function(res){
                swal({
                    title: "推送成功!",
                    text: "",
                    type: "success",
                    confirmButtonText: "OK",
                    closeOnConfirm: false
                }, function() {
                    location = "{:U('Admin/Meet/message','','')}/id/{$Meet.id}";
                });
            },function(msg){
                swal({
                    title: "操作失败 " + msg,
                    text: "",
                    type: "error",
                    confirmButtonText: "重新发送",
                    closeOnConfirm: false
                }, function() {
                    location = "{:U('Admin/Meet/message','','')}/id/{$Meet.id}";
                });
            });
        });

    })(jQuery);
</script>
</body>
</html>
<commit_msg>PushMessage: rm the error msg display<commit_after><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>轻会议--推送消息</title>
    <include file="Base/head" />

    <link href="__PUBLIC__/umeditor/themes/default/css/umeditor.css"
          rel="stylesheet">
</head>

<body style="background-color: #EDEFF1;">

<div class="container-fluid" style="margin-top: 30px;">
    <div class="row-fluid">
        <div class="col-xs-12"></div>
    </div>


    <include file="Base/menu" />
</div>



<div class="row-fluid">
    <div class="col-xs-1"></div>
    <div class="col-xs-10">


        <div class="row demo-samples">
            <div class="col-xs-3">
                <include file="Base/meetmenu" />
            </div>
            <!-- /.col-xs-4 -->
            <div class="col-xs-9" style="border-color: #fff;">

                <div class="meet" id="meet">
                    <input type="hidden" id='to' value="{$Meet.id}">
                    <div class="meet meet-title">推送消息</div>
                    <div class="meet meet-title">
                        <textarea id="content" class="form-control login-field"
                                  style="height: 238px; width: 100%;" placeholder="输入内容 不要超过250个汉字"
                                  style="height: 42px;"></textarea>
                    </div>
                    <div class="meet meet-title" align="right">
                        <br />
                        <a id="btn-send"
                           class="btn btn-block btn-lg btn-primary">发送</a>
                    </div>

                </div>

            </div>
        </div>
    </div>
    <div class="col-xs-1"></div>
</div>
<include file="Base/foot" />
<script>
    (function($) {
        var isSending = false;
        $("#btn-send").on("click",function(){
            if(isSending){
                return;
            }
            isSending =true;
            var data = qc.form().add("to").add("content").add("type",2).create();
            $(this).text('发送中....');
            qc.post("/Home/PushMessage/create",data,function(res){
                swal({
                    title: "推送成功!",
                    text: "",
                    type: "success",
                    confirmButtonText: "OK",
                    closeOnConfirm: false
                }, function() {
                    location = "{:U('Admin/Meet/message','','')}/id/{$Meet.id}";
                });
            },function(msg){
                swal({
                    title: "操作失败",
                    text: "",
                    type: "error",
                    confirmButtonText: "关闭",
                    closeOnConfirm: false
                }, function() {
                    location = "{:U('Admin/Meet/message','','')}/id/{$Meet.id}";
                });
            });
        });

    })(jQuery);
</script>
</body>
</html>

{'fraction_non_alphanumeric': 0.17829457364341086, 'fraction_numerical': 0.008613264427217916, 'mean_word_length': 1.3205435651478816, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '244779', 'n_tokens_mistral': 1823, 'n_tokens_neox': 1698, 'n_words': 289}