<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ~~~ <?php $dns_host="localhost"; $db_dbname="name"; //操作的數據庫名稱 $db_user="root"; //數據庫用戶名 $db_pwd="password"; //數據庫密碼 //連接數據庫 $conn=mysql_connect($dns_host,$db_user,$db_pwd); if(!$conn){ die(mysql_error()); } //操作數據庫名 $dbcon=mysql_select_db($db_dbname); if(!$dbcon){ die(mysql_error($dbcon)); } //設置傳輸字符集 mysql_query("set NAMES 'utf8'"); //既然是支付的回調那就要獲取支付訂單的訂單編號 //獲取訂單編號 $r6_Order=$_GET['rechargeId']; //根據訂單編號查詢表示是否有該訂單 $ssql="select * from pay_order where state=0 and rechargeId=$r6_Order"; //執行查詢支付訂單的語句 $sresult=mysql_query($ssql); //判斷是否存在該訂單 if(mysql_num_rows($sresult)){ $rss=mysql_fetch_array($sresult); $r3_Amt=$rss['amount']; //根據支付訂單查到用戶的基本信息 $sql_u="select * from users where uid=$rss[uid]"; $uresult=mysql_query($sql_u); if(mysql_fetch_array($uresult)){ $rsu=mysql_fetch_array($uresult); $rechargeTime=time(); $afmoney=$rsu["coin"]+$r3_Amt; //更新該訂單的狀態 $sqlaa="UPDATE pay_order SET state=1,rechargeAmount=$r3_Amt,rechargeTime=$rechargeTime where rechargeId=$r6_Order"; if(!mysql_query($sqlaa)){ echo "a"; } //主要做記錄,這是為了資金的安全 $sql_2="insert into ssc_coin_log (uid,type,playedID,coin,userCoin,fcoin,liqType,actionUID,actionTime,ActionIP,info,extfield0,extfield1,extfield2)values('".$rss["uid"]."','0','0','".$r3_Amt."','".$afmoney."','0','1','0','".$rechargeTime."','0','充值','".$r6_Order."','".$r6_Order."','')"; ; if(!mysql_query($sql_2)) echo "b"; } //對該用戶進行價錢 $sql_uu="update user set coin=coin+$r3_Amt where uid=$rss[uid]"; if(! mysql_query($sql_uu)){ echo "c"; } } mysql_close(); ?> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看