mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update UserService.php
This commit is contained in:
parent
957aa5a82f
commit
f71c0ef411
@ -245,7 +245,7 @@ class UserService extends Service
|
||||
}
|
||||
}
|
||||
// 购买商品升级
|
||||
$query = $this->app->db->name('ShopOrderItem')->alias('b')->rightJoin('store_order a', 'b.order_no=a.order_no');
|
||||
$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');
|
||||
if ($tmpNumber > $vipNumber) {
|
||||
$map = ['number' => $tmpNumber, 'status' => 1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user