mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Order.php
This commit is contained in:
parent
fd7c4cb090
commit
1bc51d557e
@ -98,7 +98,7 @@ class Order extends Auth
|
||||
$map = ['status' => 1, 'deleted' => 0, 'id' => $goodsInfo['discount_id']];
|
||||
if ($items = $this->app->db->name('DataUserDiscount')->where($map)->value('items')) {
|
||||
foreach (json_decode($items, true) as $vo) if ($vo['level'] == $this->user['vip_number']) {
|
||||
[$discountId, $discountRate] = [$discountId, $vo['discount']];
|
||||
[$discountId, $discountRate] = [$goodsInfo['discount_id'], $vo['discount']];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user