瀏覽代碼

去掉推荐注册收益

jason 10 月之前
父節點
當前提交
1b06b84b36

+ 2 - 2
application/api/controller/Home.php

@@ -95,10 +95,10 @@ class Home extends Api
         $this->success('', $resp);
     }
 
-    
+
     /**
      * 热销详情
-     * @param int $uid 
+     * @param int $uid
      * @param string $fee
      * @param string $txHsh
      * @return void

+ 2 - 2
application/api/controller/Member.php

@@ -52,7 +52,7 @@ class Member extends Api
                     // 创建网体
                     (new UserPathModel())->createPath($user['id'], $parentID);
                     //添加推荐人奖励
-                    $ledgerWalletModel->changeWalletAccount($parentID, Asset::TOKEN,  getConfig('direct_income'), $ledgerWalletModel::Share, $user['id']);
+                    //$ledgerWalletModel->changeWalletAccount($parentID, Asset::TOKEN,  getConfig('direct_income'), $ledgerWalletModel::Share, $user['id']);
                 }
             }
         } else { // 不存在
@@ -74,7 +74,7 @@ class Member extends Api
                 // 创建网体
                 (new UserPathModel())->createPath($newUserID, $parentID);
                 //推荐人奖励
-                $ledgerWalletModel->changeWalletAccount($parentID, Asset::TOKEN,  getConfig('direct_income'), $ledgerWalletModel::Share, $newUserID);
+                //$ledgerWalletModel->changeWalletAccount($parentID, Asset::TOKEN,  getConfig('direct_income'), $ledgerWalletModel::Share, $newUserID);
             }
         }
     }

+ 9 - 1
application/common/model/LedgerTokenChangeModel.php

@@ -33,7 +33,15 @@ class LedgerTokenChangeModel extends Model
 
     public static function getStatusList()
     {
-        return [self::Payment => __('支付'), self::Transfer  => __('转让支付'), self::Receive => __('转让收款'), self::Recharge => __('充值'), self::Withdraw  => __('提现'), self::Share => __('分享'), self::WithdrawReturn => __('提现退回')];
+        return [
+            self::Payment => __('支付'),
+            self::Transfer  => __('转让支付'),
+            self::Receive => __('转让收款'),
+            self::Recharge => __('充值'),
+            self::Withdraw  => __('提现'),
+            self::Share => __('分享'),
+            self::WithdrawReturn => __('提现退回')
+        ];
     }
 
 }