From be9d374b7b1a0e4806d0ccac13d14dcd2cb684a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 12 Mar 2021 17:47:40 +0800 Subject: [PATCH] Update RebateCurrentService.php --- app/data/service/RebateCurrentService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/data/service/RebateCurrentService.php b/app/data/service/RebateCurrentService.php index 0a35d6daf..e06d835f3 100644 --- a/app/data/service/RebateCurrentService.php +++ b/app/data/service/RebateCurrentService.php @@ -84,18 +84,19 @@ class RebateCurrentService extends Service $map = ['id' => $this->order['uid'], 'deleted' => 0]; $this->user = $this->app->db->name('DataUser')->where($map)->find(); if (empty($this->user)) throw new Exception('用户不存在'); - // 获取推荐用户 + // 获取直接推荐人数据 if ($this->order['puid1'] > 0) { $map = ['id' => $this->order['puid1']]; $this->from1 = $this->app->db->name('DataUser')->where($map)->find(); if (empty($this->from1)) throw new Exception('直接推荐人不存在'); } + // 获取间接推荐人数据 if ($this->order['puid2'] > 0) { $map = ['id' => $this->order['puid2']]; $this->from2 = $this->app->db->name('DataUser')->where($map)->find(); if (empty($this->from2)) throw new Exception('间接推荐人不存在'); } - // 批量发放奖励 + // 批量发放配置奖励 foreach (self::PRIZES as $vo) { if (method_exists($this, $vo['func'])) { $this->{$vo['func']}();