From 3582270fbdf517259ae42f2b591132e0c6116869 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 20 Oct 2014 16:49:31 +0800 Subject: [PATCH] UpdateCurrencyRate.php --- UpdateCurrencyRate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index 63ba6449..5f802764 100644 --- 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"); -- 2.39.2