控制面板测试发送微信内容


控制面板测试发送微信内容
查找相关文章:console javascript wechat
var content = 'http://t.cn/EwLfQmt';
var Type = 1;
var ts = ((new Date()).valueOf().toString()) + '1234';
var msg = {
		"BaseRequest":{
				"Uin":1408684100,
				"Sid":"c7TybazQXP2VbhOmI",
				"Skey":"@crypt_e92a591f_7f4c98fdf5512dba18284648b1976c54c",
				"DeviceID":"e744539664088159"
			},
		"Msg":{
			"Type":Type,
			"AppMsgType":5,
			"MsgType":5,
			"Url":"http://t.cn/EwufQmt",
			"FileName":"链接标题",

			"Content":content,
			"FromUserName":"@6bab98c70912dea76eca6b2134848a12a",
			"ToUserName":"@891a32883bd442e9b98c92ef58dcba70f865e6286fda4c92b8ae8a66c9940c1403",
			"LocalID":ts,
			"ClientMsgId":ts
		},
		"Scene":0
	};

var msg = JSON.stringify(msg);

$.ajax({
    'type':'post',
    url: 'https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg',
    data: msg,
    processData: false,
    dataType: "json",
    success:function(res) {
		console.log(res);
        //var code = res.code;
        //var data = res.data;                  
    },
    error:function() {
    }
});