Exemple #1
0
    if ($queryy) {
        echo '2';
    }
} else {
    if ($action == "ready") {
        $data = mysql_query("select * from weixin_flag where (status=2 or status=3) and fakeid>0");
        while ($row1 = mysql_fetch_array($data)) {
            $row1['nickname'] = pack('H*', $row1['nickname']);
            $row1 = emoji_unified_to_html(emoji_softbank_to_unified($row1));
            $arr[] = array('id' => $row1['id'], 'avatar' => $row1['avatar'], 'nickname' => $row1['nickname']);
        }
        echo json_encode($arr);
    } else {
        if ($action == "ok") {
            //标识中奖号码
            $id = $_POST['id'];
            $sql = "update weixin_flag set status=1,cjstatu=0 where id={$id}";
            $query = mysql_query($sql);
            if ($xuanzezu[10]) {
                $query2 = mysql_query("select * from weixin_flag where id = {$id}");
                $row2 = mysql_fetch_array($query2);
                include "../../moni/cj.php";
                $contant = '恭喜恭喜!您已中奖,请按照主持人的提示,到指定地点领取您的奖品!您的获奖验证码是:【' . $row2['fakeid'] . '】';
                sendmassage($token, $row2['fakeid'], $contant, $cookie, $cookies);
            }
            if ($query) {
                echo '1';
            }
        }
    }
}
Exemple #2
0
function cj_verify()
{
    $cid = $_GET['cid'];
    //file_get_contents(Web_ROOT . "/weixin/dianplu.php?action=cj&type=wins&tofakeid={$cid}");
    $flags = new M('flag');
    $flag = $flags->find('fakeid=' . $cid);
    $contant = '恭喜恭喜!此条为验证消息,您的获奖验证码是:【' . $cid . '】';
    if ($flag['fromtype'] == 'weibo') {
        $weibo_configs = new M('weibo_config');
        $weibo_config = $weibo_configs->find();
        include "../weibo/sendmessage.php";
        send($weibo_config['access_token'], $contant, $flag['openid']);
    }
    if ($flag['fromtype'] == 'weixin') {
        include "../weixin/sendmessage.php";
        sendmassage($flag['openid'], $contant);
    }
    echo "<script>alert('验证信息已经发送,请勿频繁发送!');location.href='cj.php';</script>";
}
Exemple #3
0
        while ($row1 = mysql_fetch_array($data)) {
            $row1['nickname'] = pack('H*', $row1['nickname']);
            $row1 = emoji_unified_to_html(emoji_softbank_to_unified($row1));
            $arr[] = array('id' => $row1['id'], 'avatar' => $row1['avatar'], 'nickname' => $row1['nickname'], 'from' => $row1['fromtype']);
        }
        echo json_encode($arr);
    } else {
        if ($action == "ok") {
            //标识中奖号码
            $id = $_POST['id'];
            $sql = "update weixin_flag set status=1,cjstatu=0 where id={$id}";
            $query = mysql_query($sql);
            if ($xuanzezu[10]) {
                $query2 = mysql_query("select * from weixin_flag where id = {$id}");
                $row2 = mysql_fetch_array($query2);
                $contant = '恭喜恭喜!您已中奖,请按照主持人的提示,到指定地点领取您的奖品!您的获奖验证码是:【' . $row2['fakeid'] . '】';
                if ($row2['fromtype'] == 'weibo') {
                    $weibo_configs = new M('weibo_config');
                    $weibo_config = $weibo_configs->find();
                    include "../../weibo/sendmessage.php";
                    send($weibo_config['access_token'], $contant, $row2['openid']);
                }
                if ($row2['fromtype'] == 'weixin') {
                    include "../../weixin/sendmessage.php";
                    sendmassage($row2['openid'], $contant);
                }
            }
            echo '1';
        }
    }
}
Exemple #4
0
function cj_verify()
{
    $cid = $_GET['cid'];
    //file_get_contents(Web_ROOT . "/moni/xiaobai.php?action=cj&type=wins&tofakeid={$cid}");
    include "../moni/cj.php";
    $contant = '恭喜恭喜!此条为验证消息,您的获奖验证码是:【' . $cid . '】';
    sendmassage($token, $cid, $contant, $cookie, $cookies);
    echo "<script>alert('验证信息已经发送,请勿频繁发送!');location.href='cj.php';</script>";
}