Pārlūkot izejas kodu

删除无用的

lizhen_gitee 1 gadu atpakaļ
vecāks
revīzija
2aa0ccd8ad

+ 3 - 5
application/api/controller/Party.php

@@ -107,11 +107,6 @@ class Party extends Api
         $sqlPartyInfo = $partyModel->where($where)->find();
 
         if(!$sqlPartyInfo) { // sql中不存在派对信息
-            /*$partylimit = config("site.roomLimit");
-            $partycount = $partyModel->where(['is_close'=>0])->count("id");
-            if($partycount >= $partylimit && $partylimit != -1) {
-                $this->error("房间数量已达上线,请联系客服!");
-            }*/
 
             $party_type = 8; // 派对类型(情感互动,心动点单 等)
             $party_notice = "请编辑房间公告"; // 派对公告
@@ -573,6 +568,9 @@ class Party extends Api
 
         // 获取所有魅力排行
         $getday = $this->redis->zRevRange("hourCharm_".$party_id,0,-1,true);
+
+
+
         $res['getRankListDay'] = $userModel->rankList($getday);
 
 

+ 0 - 87
application/common/service/UserService.php

@@ -209,93 +209,6 @@ class UserService
         return $result;
     }
 
-    /**
-     * 邀请赠送金额
-     * @return void
-     */
-    public function inviteMoney($params=[])
-    {
-        $result = [
-            'status' => 1,
-            'msg' => '',
-            'data' => [],
-        ];
-        try {
-            $userId = isset($params['user_id']) ? $params['user_id'] : 0;
-            if (!empty($userId)) {
-                $field = 'id,pre_userid';
-                $where['id'] = $userId;
-                $user = model('User')->field($field)->where($where)->find();
-                if (!empty($user)) {
-                    if (!empty($user['pre_userid'])) {
-                        $preWhere['id'] = $user['pre_userid'];
-                        $preUser = model('User')->field($field)->where($preWhere)->find();
-                        if (!empty($preUser)) {
-                            //查看是否赠送过金额
-                            $moneyLogWhere['invite_user_id'] = $userId;
-                            $moneyLogWhere['type'] = 103;
-                            $moneyLog = model('UserMoneyLog')->where($moneyLogWhere)->find();
-                            if (empty($moneyLog)) {
-                                //充值金额满足才能获取充值奖励
-                                $inviteMaxMoney = config('site.invite_max_money');
-                                $recharWhere['user_id'] = $userId;
-                                $recharWhere['status'] = 1;
-                                $userRecharMoney = model('RecharOrder')->where($recharWhere)->sum('money');
-                                if ($userRecharMoney >= $inviteMaxMoney) {
-                                    $money = config('site.invite_money');
-                                    if ($money > 0) {
-                                        $remark = '邀请推广充值';
-                                        $res = model('Wallet')->lockChangeAccountRemain($preUser['id'],$money,'+',0,$remark,103,'money',$userId);
-                                        if (!$res['status']) {
-                                            throw new Exception($res['msg']);
-                                        }
-                                    }
-                                    $inviteGift = config('site.invite_gift');
-                                    if ($inviteGift > 0) {
-                                        $inviteGiftNum = config('site.invite_gift_num');
-                                        $giftWhere['id'] = $inviteGift;
-                                        $gift = model('Gift')->where($giftWhere)->find();
-                                        if (!empty($gift) && $inviteGiftNum > 0) {
-                                            $userGiftBackWhere['user_id'] = $preUser['id'];
-                                            $userGiftBackWhere['invite_user_id'] = $userId;
-                                            $userGiftBackWhere['get_way'] = 5;
-                                            $userGiftBack = model('GiftBack')->where($userGiftBackWhere)->find();
-                                            if (empty($userGiftBack)) {
-                                                for($i=1;$i<=$inviteGiftNum;$i++) {
-                                                    $giftBack[] = [
-                                                        'user_id' => $preUser['id'],//用户ID
-                                                        'gift_id' => $inviteGift,//礼物ID
-                                                        'name' => $gift['name'],//礼物名称
-                                                        'image' => $gift['image'],//礼物静图
-                                                        'gif_image' => $gift['special'],//礼物动图
-                                                        'value' => $gift['value'],//购买价值
-                                                        'number' => 1,//数量
-                                                        'get_way' => 5,//获得途径:1=活动获得,2=充值购买,3=爵位赠送,4=签到赠送,5=邀请获得
-                                                        'createtime' => time(),
-                                                    ];
-                                                }
-                                                //$giftBackRes = model('GiftBack')->insertGetId($giftBack);
-                                                $giftBackRes = model('GiftBack')->insertAll($giftBack);
-                                                if (!$giftBackRes) {
-                                                    throw new Exception('赠送礼物失败');
-                                                }
-                                            }
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-            }
-        } catch (Exception $e) {
-            $result['status'] = 0;
-            $result['msg'] = $e->getMessage();
-        }
-        return $result;
-    }
-
-
 
     /**
      * 更新用户消费/魅力/礼物数据

+ 0 - 11
application/extra/site.php

@@ -37,23 +37,12 @@ return [
     'mail_smtp_pass' => 'password',
     'mail_verify_type' => '2',
     'mail_from' => '10000@qq.com',
-    'roomLimit' => '10',
-    'intro_image' => '/uploads/20230703/35b10db56529aa19086eeb3d1d0bb6b0.png',
     'money_to_jewel' => '10000',
-    'invite_money' => '1',
-    'invite_rule' => '邀请规则:'."\r\n"
-        .'1、所有用户都可以参加邀请好友活动'."\r\n"
-        .'2、通过自己分享的活动页面地址下载注册成功,'."\r\n"
-        .'即发放注册奖励,若好友充值即奖励1元。',
-    'invite_gift' => '175',
-    'invite_gift_num' => '0',
-    'un_authentication_max' => '100',
     'alipay_switch' => '1',
     'wechat_switch' => '1',
     'recharge_switch' => '1',
     'apisite_switch' => '1',
     'apisite_notice' => '今天维护!',
-    'invite_max_money' => '100',
     'android_is_force' => '1',
     'android_apkUrl' => 'https://www.pgyer.com/tSTYQg',
     'android_apkName' => 'K歌1.0.1',