projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8316a8e
)
UpdateCurrencyRate.php
author
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:49:31 +0000
(16:49 +0800)
committer
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:49:31 +0000
(16:49 +0800)
UpdateCurrencyRate.php
patch
|
blob
|
history
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
63ba644
..
5f80276
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-98,13
+98,13
@@
class Pman_Core_UpdateCurrencyRate extends Pman
if($curr->find(true)){
$o = clone($curr);
}
- print_R($curr);exit;
+
$curr->setFrom(array(
'rate' => $rate,
'from' => date('Y-m-d H:i:s', strtotime($fromDate)),
'to' => date('Y-m-d H:i:s', strtotime($toDate))
));
-
+print_R($curr);exit;
(empty($o)) ? $curr->insert() : $curr->update($o);
$this->jok("DONE");