diff --git a/control/index.php b/control/index.php index 9794580..036dcb0 100644 --- a/control/index.php +++ b/control/index.php @@ -27,7 +27,7 @@ class index extends publicBase { if ($type == 'sales_volume') { $list = $obj->getSumData($uid, $shop_id, $day); } elseif ($type == 'refund') { - $list = $obj->getRedundCountData($uid, $shop_id, $day); + $list = $obj->getRefundCountData($uid, $shop_id, $day); } $this->ajax_json(true, 'succ', $list); diff --git a/model/mOrder.php b/model/mOrder.php index 7089f55..a78439b 100644 --- a/model/mOrder.php +++ b/model/mOrder.php @@ -328,7 +328,7 @@ class mOrder extends mBase { return $date2sum; } - public function getRedundCountData($uid, $shop_id, $day=7) { + public function getRefundCountData($uid, $shop_id, $day=7) { $default_date = date("Y-m-d"); if ($day == 7) {