projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d312b28
)
UpdateCurrencyRate.php
author
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:25:34 +0000
(16:25 +0800)
committer
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:25:34 +0000
(16:25 +0800)
UpdateCurrencyRate.php
patch
|
blob
|
history
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
d6213e0
..
461d4b0
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-60,15
+60,15
@@
class Pman_Core_UpdateCurrencyRate extends Pman
foreach ($currency as $c){
$params = array(
foreach ($currency as $c){
$params = array(
- 'lang' => 'en',
- 'result' => 1,
- 'date1' => $fromDate,
- 'date'=> $toDate,
- 'date_fmt' => 'us',
- 'exch' => $c,
- 'expr' => 'USD',
- 'margin_fixed' => 0,
- 'format'=> 'HTML'
+ 'lang'
=> 'en',
+ 'result'
=> 1,
+ 'date1'
=> $fromDate,
+ 'date'
=> $toDate,
+ 'date_fmt'
=> 'us',
+ 'exch'
=> $c,
+ 'expr'
=> 'USD',
+ 'margin_fixed'
=> 0,
+ 'format'
=> 'HTML'
);
$response = $this->curl($this->actionUrl, $params, 'POST');
);
$response = $this->curl($this->actionUrl, $params, 'POST');
@@
-97,9
+97,9
@@
class Pman_Core_UpdateCurrencyRate extends Pman
}
$curr->setForm(array(
}
$curr->setForm(array(
- 'rate' => $rate,
- 'from'
=>
-
+ 'rate'
=> $rate,
+ 'from'
=> date('Y-m-d H:i:s', strtotime($fromDate),
+ 'to' => date('Y-m-d H:i:s', strtotime($toDate),
));
}
));
}