Prechádzať zdrojové kódy

注释一下没用的东西

lizhen_gitee 1 rok pred
rodič
commit
ed732bb9cc

+ 3 - 3
application/common/library/Auth.php

@@ -552,9 +552,9 @@ class Auth
         //追加
         $userinfo['avatar'] = one_domain_image($userinfo['avatar']);
         $userinfo['score'] = model('wallet')->getWallet($this->id,'score');//积分
-        $userinfo['withdraw_score'] = Db::name('user_withdraw')->where('user_id',$this->id)->where('status',1)->sum('score');//已兑换积分
-        $userinfo['share_score'] = Db::name('user_score_log')->where('user_id',$this->id)->where('log_type','IN',[3,4])->sum('change_value');//分享奖励
-        $userinfo['intro_number'] = Db::name('user')->where('intro_uid',$this->id)->count('id');//我的粉丝
+//        $userinfo['withdraw_score'] = Db::name('user_withdraw')->where('user_id',$this->id)->where('status',1)->sum('score');//已兑换积分
+//        $userinfo['share_score'] = Db::name('user_score_log')->where('user_id',$this->id)->where('log_type',3)->sum('change_value');//分享奖励
+//        $userinfo['intro_number'] = Db::name('user')->where('intro_uid',$this->id)->count('id');//我的粉丝
 
         //账号升级提醒
         $is_hualuo = $this->is_hualuo();

+ 1 - 2
application/extra/wallet.php

@@ -4,7 +4,6 @@
  */
 return [
     'logtype' => [
-        1  => '邀请奖励',
         2  => '积分兑换', //score -
         21 => '积分兑换(被拒返回)', //score +
 
@@ -13,7 +12,7 @@ return [
 
         5  => '下单收益',    //订单10日结算 score +
 
-        6  => '总代奖励',    //订单10日结算 score +
+        6  => '总代奖励',    //订单10日结算 score +     废弃了
         7  => '总代奖励(间推)',//订单10日结算 score +    废弃了
     ],
     'moneyname' => [

+ 0 - 3
application/index/controller/Plantask.php

@@ -189,10 +189,8 @@ class Plantask extends Controller
     //获取业绩
     private function jiesuan_yeji($user_id){
         //找到所有下级
-        //$user_ids = Db::name('user')->where('find_in_set(:intro_ids,intro_ids)', ['intro_ids' => $user_id])->column('id');
         $commonuser = new \app\common\model\User();
         $user_ids = $commonuser->my_down_all($user_id,[$user_id]);
-//        dump($user_ids);
 
         if(empty($user_ids)){
             return 0;
@@ -223,7 +221,6 @@ class Plantask extends Controller
     private function jiesuan_daili_level($yeji){
 
         $data = Db::name('zongdai')->order('id asc')->select();
-//        dump($data);
 
         $return = $data[0]; //默认第0个
         foreach($data as $key => $rule){