\Web\wx\keyword.aspx
1ң
<select id="msgtype" name="msgtype" class="sel" onchange="showMsgtypeTips();">
ӽڵڲӣ
<option value="api">APIչӿ</option>


2ң
<tr>
    <th></th>
    <td>
        <input name="submit" type="submit" value="ύ" onclick="return checkConfig();" class="mt10 btn grid-2 alpha">
        <input name="method" type="hidden" value="save" />
        <input name="config" id="config" type="hidden" value="<%=config %>" />
    </td>
</tr>
ڴ֮ǰӣ
                    <tr class="resconfig apimsg">
                    	<th valign="top" align="right">ApiUrl</th>
						<td>
                        <input type="text" id="apiurl" class="txt grid-4 alpha pin" />
                        <div class="notice">дAPIṩȡAPIӿڵַ</div>
                        </td>
                    </tr>



3ң
else if (msgtype == "music") {
                $('.musicmsg').show();
                $('#msgtypetips').html('ڻظпѡֵƵĻظݣûõضؼ־׼ķظ˿ʵһһü򵥶Ի');
            }
ڴ֮ӣ
else if (msgtype == "api") {
                $('.apimsg').show();
                $('#msgtypetips').html('ͨAPIӿڣӦĵչܻԼƵĹܡ');
            }


4ң
            if ($('#msgtype').val() == 'basic') {
                var txt = '';
                $('.txtmsgitem em').each(function () {
                    if ($(this).html().length > 0) {
                        txt = txt + $(this).html() + '#@@@#';
                    }
                });
                if (txt.length > 0) {
                    $('#config').val(txt);
                    return true;
                } else {
                    $('#config').val(txt);
                    return true;
                }
            }else if ($('#msgtype').val() == 'news') {
                var txt = '';
                //txt=txt+$('#newstitlemain').html()+'#@@#';
                //txt=txt+$('#newsdescmain').html()+'#@@#';
                //txt=txt+$('#newspicmain').attr('src')+'#@@#';
                //txt=txt+$('#newspicmain').attr('link')+'#@@#';
                //txt=txt+$('#newscontentmain').html()+'#@@#';
                $('.newsli').each(function () {
                    var img=$(this).find('img').first();
                    var title=$(this).find('h4').first();
                    if(img&&$(title).html().length > 0){
                        if (txt.length > 0) {
                            txt = txt + '#@@@#';
                        }
                        txt=txt+$(title).html()+'#@@#';
                        txt=txt+$(title).next().html()+'#@@#';
                        txt=txt+$(img).attr('src')+'#@@#';
                        txt=txt+$(img).attr('link')+'#@@#';
                        txt=txt+$(title).next().next().html()+'#@@#';
                    }
                });
                $('#config').val(txt);
                return true;
            }else if($('#msgtype').val() == 'music'){            
                if($('#musictitle').val()==''){
                    alert("дֱ");
                    $('#musictitle').focus();
                    return false;
                }else if($('#musicurl').val()==''){
                    alert("ָӵַ");
                    $('#musicurl').focus();
                    return false;
                }
                var music='';
                music=music+ "musictitle#@@#"+$('#musictitle').val()+"#@@@#";
                music=music+ "musicurl#@@#"+$('#musicurl').val()+"#@@@#";
                music=music+ "musichdurl#@@#"+$('#musichdurl').val()+"#@@@#";
                music=music+ "musicdesc#@@#"+$('#musicdesc').val();
                $('#config').val(music);
                return true;
            }
ڴ֮ӣ
else if($('#msgtype').val() == 'api'){            
                if($('#apiurl').val()==''){
                    alert("дAPIĵַ");
                    $('#apiurl').focus();
                    return false;
                }
                var api= 'Api:' + $('#apiurl').val();
                $('#config').val(api);
                return true;
            }



5ң
	window.UEDITOR_CONFIG.initialFrameHeight = 210;
ڴ֮ǰӣ
        function apiItemSet(url) {
            $('#apiurl').val(url);
        }



\Web\wx\keyword.cs
1ң
else if (msgtype == "news")
ڴ֮ǰ
                    else if (msgtype == "api")
                    {
                        try
                        {
                            if (config.ToLower().StartsWith("api:"))
                            {
                                _scriptint += "apiItemSet('" + config.Substring(4) + "');\n";
                            }
                        }
                        catch { }
                    }

\Web\wxapi.aspx.cs
1ң
                                else if (keyword.MsgType == "basic")
ڴ֮ǰ

                                else if (keyword.MsgType == "api")
                                {
                                    allowGoto = false;
                                    MsgType = "api";
                                    extUrl = keyword.Config.Replace("Api:", "");
                                    goto startDo;   //תϢʼ
                                }