WIN-2308041133\Administrator há 4 meses atrás
pai
commit
58b55cbd52

+ 0 - 12
app/common/repositories/store/order/StoreOrderRepository.php

@@ -1484,18 +1484,6 @@ class StoreOrderRepository extends BaseRepository
                 $title = '礼包团队奖励';
                 $performance_ratio = systemConfig('gift_pack_ratio',10);
             }
-//                case 1:
-//                    $model = new OilLevel();
-//                    $field = 'oil_level';
-//                    $name = '节能油';
-//                    $title = '节能油积分分红';
-//                    break;
-//                case 2:
-//                    $model = new GiftLevel();
-//                    $field = 'gift_level';
-//                    $name = '礼包';
-//                    $title = '礼包积分分红';
-//                    break;
             $performance_ratio = bcmul($performance_ratio,0.01,2);
             $level = $model->where('award_ratio', '>', 0)->select();
             $price = bcmul($order['pay_price'], $performance_ratio, 2); //分红金额

+ 1 - 1
app/controller/api/user/User.php

@@ -93,7 +93,7 @@ class User extends BaseController
     {
         $user = $this->user;
         $extensionInfo = get_extension_info($user);//获取用户是否可以分销以及是否内购
-        if (!$extensionInfo['isPromoter']) return app('json')->fail('您还不是分销员');
+        if (!$extensionInfo['isPromoter']) return app('json')->fail('');
         $make = app()->make(UserBrokerageRepository::class);
         $user->append(['one_level_count', 'lock_brokerage', 'two_level_count', 'spread_total', 'yesterday_brokerage', 'total_extract', 'total_brokerage', 'total_brokerage_price']);
         $show_brokerage = (bool)$make->search(['type' => 0])->count();