官方免费久久看黄片,亚洲无码免费黄视频网,午夜福利中文字幕在线看,国产精品亚洲第一区二区三区

阿里云實(shí)時(shí)外匯查詢(xún)接口

二次開(kāi)發(fā) admin 發(fā)布時(shí)間:2023-11-17 09:01:15 瀏覽:

阿里云推出了實(shí)時(shí)外匯查詢(xún)接口,也很便宜,通遼易聯(lián)通達(dá)給客戶(hù)對(duì)接如下

  public function currency_exchange($fromCode, $toCode, $money=0) {

    if( $fromCode == "" || $toCode == "" ) {
        exit('Please Input exchange_rate param: fromCode, toCode');
    }
        $host = "https://tysjhlcx.market.alicloudapi.com";
        $path = "/exchange_rate/convert";
        $method = "GET";
        $appcode = "8a18d0903f734832a49bb3992a8d85bd";
        $headers = array();
        array_push($headers, "Authorization:APPCODE " . $appcode);
        $querys = "fromCode=".$fromCode."&toCode=".$toCode."&money=".$money;
        $bodys = "";
        $url = $host . $path . "?" . $querys;
    
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
        curl_setopt($curl, CURLOPT_FAILONERROR, false);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl, CURLOPT_HEADER, false);
        if (1 == strpos("$".$host, "https://"))
        {
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
        }
        //var_dump(curl_exec($curl));
        $response = curl_exec($curl);
 
有需要的朋友可以聯(lián)系我們

在線(xiàn)咨詢(xún)

點(diǎn)擊這里給我發(fā)消息售前咨詢(xún)專(zhuān)員

點(diǎn)擊這里給我發(fā)消息售后服務(wù)專(zhuān)員

在線(xiàn)咨詢(xún)

免費(fèi)通話(huà)

24h咨詢(xún):0475-2793529


如您有問(wèn)題,可以咨詢(xún)我們的24H咨詢(xún)電話(huà)!

免費(fèi)通話(huà)

微信掃一掃

微信聯(lián)系
返回頂部
  • <cite id="kkkkk"><ul id="kkkkk"></ul></cite>
    <noscript id="kkkkk"><optgroup id="kkkkk"></optgroup></noscript>
    • <small id="kkkkk"></small>
    • <sup id="kkkkk"><delect id="kkkkk"></delect></sup>
      <tr id="kkkkk"><menu id="kkkkk"></menu></tr>
      • <nav id="kkkkk"><code id="kkkkk"></code></nav>