WIN-2308041133\Administrator 4 月之前
父節點
當前提交
905a32f80c
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      app/controller/api/Auth.php
  2. 1 1
      app/controller/api/user/User.php

+ 1 - 0
app/controller/api/Auth.php

@@ -221,6 +221,7 @@ class Auth extends BaseController
             $data['oil_performance'] = $oil_performance;
         }
         $data['integral_value'] = bcmul($data['award_integral'],$data['integral_prcie'],2);
+        $data['user_extract_min'] = systemConfig('user_extract_min');
         return app('json')->success($data);
     }
 

+ 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();