From 83de9c0b85c8889b519c037e2a000c8af5beda10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 17 Mar 2021 18:42:35 +0800 Subject: [PATCH] Update RebateService.php --- app/data/service/RebateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/data/service/RebateService.php b/app/data/service/RebateService.php index 4766b195b..e1b030a67 100644 --- a/app/data/service/RebateService.php +++ b/app/data/service/RebateService.php @@ -264,7 +264,7 @@ class RebateService extends Service $users = $this->app->db->name('DataUser')->whereIn('vip_code', $vips)->whereIn('id', $puids)->orderField('id', $puids)->select()->toArray(); // 查询需要计算奖励的商品 $map = [['order_no', '=', $this->order['order_no']], ['discount_rate', '<', 100]]; - foreach ($this->app->db->name('StoreOrderItem')->where($map)->cursor() as $item) { + foreach ($this->app->db->name('ShopOrderItem')->where($map)->cursor() as $item) { $itemJson = $this->app->db->name('DataUserDiscount')->where(['status' => 1, 'deleted' => 0])->value('items'); if (!empty($itemJson) && is_array($rules = json_decode($itemJson, true))) { [$tVip, $tRate] = [$item['vip_code'], $item['discount_rate']];