projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
49f39a1
)
UpdateCurrencyRate.php
author
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:10:10 +0000
(16:10 +0800)
committer
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:10:10 +0000
(16:10 +0800)
UpdateCurrencyRate.php
patch
|
blob
|
history
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
aa36256
..
0a4177c
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-65,7
+65,7
@@
class Pman_Core_UpdateCurrencyRate extends Pman
'exch' => $c,
'expr' => 'USD',
'margin_fixed' => 0,
'exch' => $c,
'expr' => 'USD',
'margin_fixed' => 0,
- 'format'=> '
CSV
'
+ 'format'=> '
HTML
'
);
}
);
}
@@
-82,11
+82,9
@@
class Pman_Core_UpdateCurrencyRate extends Pman
$ts = $xpath->query("//td[@id='content_section']");
$ts = $xpath->query("//td[@id='content_section']");
- $elements = $xpath->query("
table/tr/td/pre
", $ts->item(0));
+ $elements = $xpath->query("
/tr[2]
", $ts->item(0));
- $rate = array_map("str_getcsv", explode("\n", $elements->item(0)->nodeValue));
-
- print_r($rate);exit;
+ print_r($elements);exit;
}
}