From 3b493a5841d93bc8e2ff6e21c86dc4d727e7a3a9 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 20 Oct 2014 15:25:22 +0800 Subject: [PATCH] UpdateCurrencyRate.php --- UpdateCurrencyRate.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index 10e776f1..06fd6315 100644 --- a/UpdateCurrencyRate.php +++ b/UpdateCurrencyRate.php @@ -15,7 +15,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman var $mapping = array( 'CNY' => 'RMB' - ) + ); function getAuth() { @@ -30,7 +30,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman function get() { -// print_r(date('m/d/y'));exit; + print_r(date('m/d/y'));exit; echo "obtain the currency lists... \n"; @@ -56,20 +56,20 @@ class Pman_Core_UpdateCurrencyRate extends Pman if(empty($currency)){ die('no any currency'); } -// -// foreach ($currency as $c){ -// $params = array( -// 'lang' => 'en', -// 'result' => 1, -// 'date1' => '10/14/14', -// 'date'=> date('m/d/y'), -// 'date_fmt' => 'us', -// 'exch' => 'CNY', -// 'expr' => 'USD', -// 'margin_fixed' => 0, -// 'format'=> 'HTML' -// ); -// } + + foreach ($currency as $c){ + $params = array( + 'lang' => 'en', + 'result' => 1, + 'date1' => '10/14/14', + 'date'=> date('m/d/y'), + 'date_fmt' => 'us', + 'exch' => 'CNY', + 'expr' => 'USD', + 'margin_fixed' => 0, + 'format'=> 'HTML' + ); + } -- 2.39.2