Kod halaman pembayaran API Tolong bantu!
张龙=12481
张龙=12481 2019-06-02 20:00:51
0
2
1275

<?php

require_once("vendor/autoload.php");

global $_W;

global $_GPC;

$site_info = $_W["setting"]["site"];

$current_module = $_W["current_module"];


/**

* Buat nombor pesanan pembayaran

* @return string

*/


function getconfig($key, $uid,$default = ''){

=    $config pdo_get('zunyue_ysyccs_site', ['key' => $key,'uniacid' => $uid]);

    return $config ? $config['value'] : $default;

}


function createOutTradeNo()

{

     mt_srand((double) microtime() * 10000 00); str_pad(mt_rand(10000, 99999), 5, "0", STR_PAD_LEFT) . rand(10000, 99999);

}

kalendar fungsi($tarikh = 0)

{

    $kalendar = OvertrueChineseCalendarCalendar baru ($trtimetoChineseCalendar ($trtimetox) ($trtimetoChineseCalendar );🜎

    kembali $kalendar->solar(tarikh("Y", $cap masa), tarikh("m", $cap masa), tarikh("d", $cap masa));

}

fungsi getPlatform() . }


    kembalikan "pc";

}

fungsi postXmlCurl($xml = "", $url = "", $second = 30)

{

 

{

  $ikal;


curl_setopt ($ ch, curlopt_timeout, $ kedua);

curl_setopt ($ ch, curlopt_url, $ url);

curl_setopt ($ ch, curlopt_ssl_verifypeer, false);

     curl_setopt($ch, CURLOPT_HEADER, false);

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);


    curl_setopt($ch. CURLOPT_POST, true);

BIDANG, $xml);

    $data = curl_exec($ch);

     if( $data )

    {

        curl_close($ch);

        pulangkan $data;

 

 

  $error = curl_errno($ch) ;

    curl_close($ch);

    return $error;

}

function authcodeData($string, $operation = "", $key = "", $expiry = 0)

    $ckey_length = 4;

    $key = md5(($key != "" ? $key : "zunyue"));

    $keya = md5(substr($key, 0, 16));

     $keyb = md5(substr($key, 16, 16));

    $keyc = ($ckey_length ? ($operation == "DECODE" ? substr($string, 0, $ckey_length) : substr(md5(microtime()), 0 - $ckey_length)) : "");

$cryptkey = $keya . md5($keya . $keyc);

    $key_length = strlen($cryptkey);

    $string = ($operation == "DECODE" ? base64_decode(substr($string, $ckey_length)) : sprintf("% 010d", ($expiry ? $expiry + time() : 0)) . substr(md5($string . $keyb), 0, 16) . $string);

    $string_length = strlen($string);

.

        $rndkey[$i] = ord($cryptkey[$i % $key_length]);

        $i++;

    }

    $j = $i = 0;

;

    {

        $j = ($j + $kotak[$i] + $rndkey[$i]) % 256;

        $tmp = $kotak[$i];

        $kotak kotak[$j];

        $kotak[$j] = $tmp;

        $i++;

    }

    $a = $j = $i = 0;

 ;($_panjang &amp;

    {

        $a = ($a + 1) % 256;

        $j = ($j + $box[$a]) % 256;

    ;    $tmp $box[$a] = $box[$j];

        $box[$j] = $tmp;

        $result .= chr(ord($string[$i]) ^ $box[($box [$a] + $box[$j]) % 256]);

        $i++;

    }

    if( $operation == "DECODE")

    {

    {

 (

   jika 0, 10) == 0 || 0 < substr($result, 0, 10) - time()) && substr($result, 10, 16) == substr(md5(substr($result, 26) . $keyb), 0, 16) )

        {

kembali substr (hasil $, 26);

}

kembali "";

}

kembali $ keyc. str_replace("=","", base64_encode($result));

}


function getCesuanDataOrder($order_info = array(  ), $product_sn = "", $return_data_original = ""app_id = palsu, $app_id , $token = "")

{

     global $_W;

     $current_module = $_W["current_module"];

    $site_info = $_W["setting"]["site"];

    //$content = postxmlcurl(array_merge($order_info, array( "host" => $_SERVER["HTTP_HOST"], "modul" => $current_module["nama"], "versi" => $ modul_semasa["versi"], "id_tapak" => $info_tapak["kunci"], "domain" => $app_id, "token" => $token )), "http://auth.zunyue.me/api/fortunetelling/cesuan", 5);

   $content = postXmlCurl(array_merge($order_info, [

'product_id' => $product_sn,

        'app_id' => $app_id,

        'token' => $token,

    ]), 'http://m. .php', 5);


     if($content && $content != "error"){

        return $content;

    }else{

  ; array code "error_msg"=>'授权错误');

    }

}


//支付下单计算签吜

}

//支付下单计算签名

    jika (!is_array($paydata)) {

        exit("data错误");

    }

     $fpappkey = getconfig('fpappkey',$paydata['uid']);

     $('fpappkey' ']);

     $str_sign="appkey={$fpappkey}&order_no={$paydata['order_no']}&secretkey={$secretkey}&total_fee={$paydata['total_fee']}&uid={$paydata[ "uid"

{

    jika (!is_array($paydata)) {

        exit("data错误");

    }

    $fpappkey = getconfig('fpappkey['uid'] = $

['uid'] data; getconfig('fpsecretkey',$paydata['uid']);

    $str_sign="appkey={$fpappkey}&order_no={$paydata['order_no']}&secretkey={$secretkey}&me_pri={$paydata[ 'me_pri']}&uid={$paydata['uid']}&";

    $sign=md5($str_sign);

    return $sign;

}

($function, httpGet $second = 30)

{

     $curl = curl_init();

    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

    curl_setopt($curl_setopt, $

CURL, $

); , CURLOPT_SSL_VERIFYPEER , palsu);

curl_setopt ($ curl, curlopt_ssl_verifyHost, false);

curl_setopt ($ curl, curlopt_url, $ url);

$ res = curl_exec ($ curl);

curl_close ($ curl);

}

function createNonceStr($length = 16)

{

    $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW3"; str = "";

    $i = 0;

    sambil( $i < $length )

     {

        $str .= substr($chars, mt_rand(0, strlen($chars) - 1), 1);

        $i++;  

    return

}

function mobileUrl($params = array(  ), $share_url = "")

{

    global $_W;

    list($controller, $action, $do) =", meletup(" "entry");

     if( kosong($share_url) )

     {

        $url = $_W["siteroot"] . "app/";

    }

    lain

     {

         $url = $share_url . "/app/";

    }

     $str = "";

    $url .= "index.php?i=" . $_W["uniasid"] . $str . "&";

     jika( !empty($controller) )

     {

        $url .= "c=" . $pengawal . "&";

     }

     jika( !kosong($action) )

    {

        $url .= "a=" . $action . "&";

     }

     jika( !kosong($do) )

    {

        $url .= "do=" . $do . "&";

     }

     if( !empty($params) )

    {

        $queryString = http_build_query($params)

    {

        $queryString = http_build_query($params), ", ryString ;

    }

     pulangkan $url;

}


fungsi createDomainUrl($domain = "")

" ==_VER.

" == VER.

" == VER 3 | |. isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) != "off" || strtolower($_SERVER["HTTP_X_FORWARDED_PROTO"]) == "https" || strtolower($_SERVER ["HTTP_X_CLIENT_SCHEME"]) == "https" ? true : false);

    $sitescheme = ($ishttps ? "https://" : "http://");

    $sitepath = substr($_SERVER ["PHP_SELF"], 0, strrpos($_SERVER["PHP_SELF"], "/"));

    $http_host = (kosong($domain) ? $sitescheme . $_SERVER["HTTP_HOST"] : $domain);

    $domain_url = htmlspecialchars($http_host . $sitepath);

    if( substr,($domain_url = htmlspecialchars($http_host . $sitepath); 1) != "/" )

    {

        $domain_url .= "/";

    }


     $urls = parse_url($domain_

);

   }

tempat( array( "/web", "/app", "/payment/wechat", "/payment/alipay", "/payment/jueqiymf", "/api" ), "", $urls["path"]) ;

    kembalikan $urls["skema"] . "://" . $urls["hos"] . ((!kosong($urls["port"]) && $urls["port"] != "80" ? ":" . $urls["port"] : "")) . $urls["path"];


}

function qrcodeBase64($qrcode_resize, $share_url)

{

    $qrcode = new SimpleSoftwareIOQrCodeBaseBase64( baseGenerator_Qrcode) encode($qrcode->format( "png")->margin(0)->saiz($qrcode_resize)->jana($share_url));

}


/**&*/

function isWeixin()

{

     if( stripos($_SERVER["HTTP_USER_AGENT"], "MicroMessenger") === false )

    {

        return false;

 

    kembali benar;

}


其中126行"   http://auth.zunyue.me/api/fortunetelling/cesuan", 5);

和130行的     http://api.kuzhuti.cn/api .php', 5); 这个是什么意思?  如果这2个位置别别人后台进行修改,那我的软件是不是丆也為何能破解呢??

   




张龙=12481
张龙=12481

membalas semua(2)
张龙=12481

Saya membeli kod sumber, tetapi ia agak tidak menyenangkan saya bimbang dia akan menukar antara muka, jadi saya bertanya kepada anda bagaimana saya boleh menukar ini kepada antara muka saya sendiri.

微簇

Adakah ini alamat antara muka api pembayaran yang anda hubungi? Contohnya, permintaan pembayaran WeChat ialah: https://api.mch.weixin.qq.com/pay/unifiedorder Secara amnya, antara muka yang disediakan oleh orang lain tidak akan diubah begitu sahaja. Anda boleh membaca dokumen rasmi orang lain.

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan