公司inur php id_,push_id.php

header('Content-Type: text/html;charset=utf-8');

header("Cache-Control: no-cache, must-revalidate");

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

require('inc.php');

$id=base::g("id");

?>

推送消息

h2{background: #f0f0f0;line-height: 30px;padding:0 10px;margin-top:10px;}

.contents{border:1px #f0f0f0 solid;padding:0 10px;line-height: 20px;}

h1{color: #ff0000;font-size: 16px;line-height: 30px;}

#loadings{font-size: 14px;color: #ff0000;line-height: 25px;}

if($id) {

$member=$db->get_one("select * from ###_member where id='{$id}'");

echo "给".$member["realname"]." ".$member["title"]."发送推送消息:
";

if(!$member["jpush_id"] || $member["jpush_id"]=="undefined") {

echo "用户手机禁止接受推送消息";

exit;

}

if(!$member["is_push"]) {

echo "用户app里设置不接受推送消息";

exit;

}

}

else {

echo "给所有安装app的用户发送推送消息:
";

}

?>

确认发送

function set_child_checked(frm,key) {

if($("#countys_"+key).is(':checked')) {

$("#countys_"+key).attr("checked",true);

$(".county_"+key).each(function(){

$(this).prop("checked",true);

});

} else {

$("#countys_"+key).attr("checked",false);

$(".county_"+key).each(function(){

$(this).prop("checked",false);

});

}

}

function sub_add(){

var msg=$("#msg").val();

if(!msg) {

alert('请输入推送内容');

return false;

}

$("#buttons").html('正在发送,请稍等...');

$.ajax({

url: "/admin_1/json.php",

data: {

act: "push_member",

msg:$("#msg").val(),

id:"<?php echo $id?>"

},

dataType: "json",

type:"post",

success: function (result) {

alert('发布成功');

$("#buttons").html('确认发送');

},

error: function (result) {

console.log(result);

}

});

}

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值