一级日本大片免费,国产欧美日韩一区二五月天,日本久久久久午夜免费,人人看人人拍国产精品

  1. 阿里云實時外匯查詢接口

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

    阿里云推出了實時外匯查詢接口,也很便宜,通遼易聯(lián)通達給客戶對接如下

      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)系我們

    在線咨詢

    點擊這里給我發(fā)消息售前咨詢專員

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

    在線咨詢

    免費通話

    24h咨詢:0475-2793529


    如您有問題,可以咨詢我們的24H咨詢電話!

    免費通話

    微信掃一掃

    微信聯(lián)系
    返回頂部