From 2173fed1c636c1fb2099dbaf65630273b16d14c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 11 Mar 2021 18:23:51 +0800 Subject: [PATCH] Update UserService.php --- app/data/service/UserService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/data/service/UserService.php b/app/data/service/UserService.php index 08038a7dc..ad1a75ef4 100644 --- a/app/data/service/UserService.php +++ b/app/data/service/UserService.php @@ -246,7 +246,7 @@ class UserService extends Service } // 购买商品升级 $query = $this->app->db->name('ShopOrderItem')->alias('b')->join('shop_order a', 'b.order_no=a.order_no'); - $tmpNumber = $query->whereRaw("a.uid={$uid} and a.payment_status=1 and a.status in (3,4,5) and b.vip_entry=1")->max('b.vip_number'); + $tmpNumber = $query->whereRaw("a.uid={$uid} and a.payment_status=1 and a.status>=4 and b.vip_entry=1")->max('b.vip_number'); if ($tmpNumber > $vipNumber) { $map = ['status' => 1, 'number' => $tmpNumber]; $upgrade = $this->app->db->name('DataUserUpgrade')->where($map)->find();