mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改升级
This commit is contained in:
parent
2440fe0432
commit
957aa5a82f
@ -11,7 +11,7 @@
|
||||
Target Server Version : 50562
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 24/02/2021 18:06:08
|
||||
Date: 24/02/2021 18:31:33
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
@ -120,6 +120,7 @@ CREATE TABLE `data_user` (
|
||||
`vip_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'VIP等级名称',
|
||||
`vip_number` bigint(20) NULL DEFAULT 0 COMMENT 'VIP等级序号',
|
||||
`vip_datetime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'VIP等级时间',
|
||||
`buy_vip_entry` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否入会礼包',
|
||||
`amount_total` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '返利收益统计',
|
||||
`amount_used` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '提现金额统计',
|
||||
`balance_total` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '累计充值统计',
|
||||
|
@ -230,7 +230,7 @@ class UserService extends Service
|
||||
$orderAmount = $this->app->db->name('ShopOrder')->where(['uid' => $uid])->whereIn('status', [3, 4, 5])->sum('amount_total');
|
||||
// 计算用户级别
|
||||
foreach ($this->app->db->name('DataUserLevel')->where(['status' => 1])->order('number desc')->cursor() as $item) {
|
||||
$l1 = empty($item['goods_vip_status']) || $user['vip_auth'] > 0;
|
||||
$l1 = empty($item['goods_vip_status']) || $user['buy_vip_entry'] > 0;
|
||||
$l2 = empty($item['teams_users_status']) || $item['teams_users_number'] <= $teamsUsers;
|
||||
$l3 = empty($item['order_amount_status']) || $item['order_amount_number'] <= $orderAmount;
|
||||
$l4 = empty($item['teams_direct_status']) || $item['teams_direct_number'] <= $teamsDirect;
|
||||
|
Loading…
x
Reference in New Issue
Block a user