From 6c006ecd2105618e7bdbf4e8fae65d0a9ff1fcb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 23 Feb 2021 16:36:27 +0800 Subject: [PATCH] Update PrizeService.php --- app/data/service/PrizeService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/data/service/PrizeService.php b/app/data/service/PrizeService.php index 7990e57d6..02791bf31 100644 --- a/app/data/service/PrizeService.php +++ b/app/data/service/PrizeService.php @@ -191,7 +191,7 @@ class PrizeService extends Service private function _prize04(): bool { if (empty($this->fromer)) return false; - $pm2 = $this->app->db->name('DataUser')->where(['id' => $this->fromer['from']])->find(); + $pm2 = $this->app->db->name('DataUser')->where(['id' => $this->fromer['pid1']])->find(); if (empty($pm2)) return false; if (!$this->checkLevelPrize(self::PRIZE_04, $pm2['vip_number'])) return false; $map = ['type' => self::PRIZE_04, 'order_no' => $this->order['order_no'], 'order_uid' => $this->order['uid']];