无限生成支付宝任意金额二维码

支付宝的二维码每天都有一定的限制,对于一些使用类似码支付的第三方支付的小伙伴,就比较难受了

index.php代码

<html>
    <head>
        <meta charset="utf-8"/>
        <title>止语无限生成支付宝二维码</title>
        <style>
            body{
                background:pink;
            }
            .jg{
                width:300px;
                height:300px;
                margin:0 auto;
                text-align:center;
                line-height:300px;
            }
            .jz{
                width:400px;
                height:400px;
                font-size:30px;
                border:1px solid red;
                margin:0 auto;
            }
            input{
                width:300px;
                height:40px;
                margin-bottom:20px;
                outline:none;
            }
            input[type=submit]{
                margin-left:70px;
            }
            input[type=text]:focus{
                border:3px solid #B6FF88;
            }
            div p{
                font-size:20px;
            }
        </style>
    </head>

    <body>
        <div class="jg">

                <?php
                    $pd = $_GET['mod'];
                    if($pd == 'zf'){
                        $money = $_POST['money'];
                        $memo = $_POST['memo'];
                        $uid = $_POST['uid'];
                        if(!empty($money) && !empty($memo) && !empty($uid)){
                            require_once 'a.php';    // 导入需要的函数
                            $pay_url = "alipays%3a%2f%2fplatformapi%2fstartapp%3fappId%3d20000123%26actionType%3dscan%26biz_data%3d%7b%22s%22%3a+%22money%22%2c%22u%22%3a+%22".$uid."%22%2c%22a%22%3a+%22".$money."%22%2c%22m%22%3a%22".$memo."%22%7d";

                             $url = "http://qr.liantu.com/api.php?text=".$pay_url;


                            echo ym($url);
                        }else{
                            echo "金额和备注不可为空";
                        } 


             } ?>
        </div>
        <div class="jz">

            <form action="?mod=zf" action="a.php" method="post">
                <div>
                    <span>金额</span>
                    <input type="text" name="money" value="1"/>
                </div>
                <div>
                    <span>备注</span>
                    <input type="text" name="memo" value="1"/>
                </div>
                <div>
                    <span>I&nbsp;D&nbsp;&nbsp;</span>
                    <input type="text" name="uid" value=""/>
                </div>
                <div>
                    <input type="submit" value="提交"/>
                </div>
                <div>
                    <p>
                        ID的获取方法:登录到网页支付宝,然后右键-检查-搜索UserId即可
                    </p>
                </div>
            </form>
<?php
            echo "<p style='display:none'>-----------------------</p>";
            echo "<p style='display:none'>-----------------------</p>";
            echo "<p style='display:none'>-------止语------------</p>";
            echo "<p style='display:none'>------QQ1546959202-----</p>";
            echo "<p style='display:none'>-----------------------</p>";
            echo "<p style='display:none'>-----------------------</p>";
             ?>            


        </div>

    </body>
    <script>

        $(function(){

        })



        console.log('---------------------------\n-------二维码无限生成------------\n-------止语止语--------\n--------QQ1546959202-------------')

    </script>

</html>

a.php代码

<?php

function ym($url){
     $file = './ewm.png';
     $img = file_get_contents($url);
     $fp = fopen($file, w);
     fwrite($fp,$img);
    return "<img src='ewm.png'/>";
}
本博客所有文章如无特别注明均为原创。作者:止语复制或转载请以超链接形式注明转自 止语-编程学习分享
原文地址《无限生成支付宝任意金额二维码

相关推荐

发表评论

路人甲
看不清楚?点图切换

网友评论(0)