Pārlūkot izejas kodu

删除无用的配置和接口

lizhen_gitee 1 gadu atpakaļ
vecāks
revīzija
47d4ca6fe7

+ 0 - 114
application/api/controller/Index.php

@@ -35,17 +35,6 @@ class Index extends Api
     }*/
 
 
-//    /**
-//     * 生成不重复的随机数字字母组合
-//     */
-//    function getUinqueNo($length = 8) {
-//        $newid = Random::build("alnum",$length);
-////        if(in_array($newid,$nos)) {
-////            $this->getUinqueNo(8);
-////        }
-//        return $newid;
-//    }
-
 
 
 
@@ -367,109 +356,6 @@ class Index extends Api
         $this->success("获取成功!",$res);
     }
 
-    /**
-     * 获取下载二维码和邀请码
-     */
-    public function getInviteCode() {
-        // 获取二维码
-        $host = $_SERVER["REQUEST_SCHEME"]."://".$_SERVER["HTTP_HOST"];
-        $qrcode = $this->httpurl($host.config("site.qrcode"));
-        $miniqrcode = $this->httpurl($host.config("site.miniqrcode"));
-        // 获取用户邀请码
-        $inviteCode = \app\common\model\User::where(["id"=>$this->auth->id])->value("invite_no");
-        $downlowdLink = $host."/index/index/appJump?t=wlt".rand(10,999).Random::alpha(8);
-        $this->success("获取成功!",["qrcode"=>$qrcode,"miniqrcode"=>$miniqrcode,"inviteCode"=>$inviteCode,"downlowdLink"=>$downlowdLink]);
-    }
-
-    /**
-     * 获取app分享海报
-     */
-    public function getAppShare() {
-        $this->success("获取成功!",["url"=>$this->httpurl(config("site.appShare"))]);
-    }
-
-
-    /**
-     * 获取邀请图片
-     */
-    public function getInviteImg() {
-        $plat = $this->request->request("plat",1); //平台:1=小程序,2=app
-        if(!in_array($plat,[1,2])) $this->error("参数错误");
-        // 获取用户的邀请码
-        $invitecode = \app\common\model\User::where(["id"=>$this->auth->id])->value("invite_no");
-
-        // 文字图片合成
-        $bigImgPath = $this->httpurlLocal('/assets/img/inviteimg.jpeg');
-        $img = imagecreatefromstring(file_get_contents($bigImgPath));
-        //字体文件
-        $font = realpath('./assets/fonts/lato/lato-black.ttf');
-
-        //字体颜色(RGB)
-        $black = imagecolorallocate($img, 217, 76, 41);
-        //字体大小
-        $fontSize = 30;
-        //旋转角度
-        $circleSize = 0;
-        //左边距
-        $left = 275;
-        //上边距
-        $top = 540;
-        imagefttext($img, $fontSize, $circleSize, $left, $top, $black, $font, $invitecode);
-        $filename = date("YmdH").".jpeg";
-        $path = "/uploads/qrcode/".$filename;
-        $file = $_SERVER['DOCUMENT_ROOT'] . $path;//打开文件准备写入
-        list($bgWidth, $bgHight, $bgType) = getimagesize($bigImgPath);
-        switch ($bgType) {
-            case 1://gif
-                header('Content-Type:image/gif');
-                imagegif($img,$file);
-                break;
-            case 2://jpg
-                header('Content-Type:image/jpg');
-                imagejpeg($img,$file);
-                break;
-            case 3://jpg
-                header('Content-Type:image/png');
-                imagepng($img,$file);
-                break;
-            default:
-                break;
-        }
-        //销毁照片
-        imagedestroy($img);
-
-        // 图片和二维码合成
-        $qrcode = $plat == 1 ? config("site.miniqrcode"):config("site.qrcode");
-
-
-        $background = $file;
-        $target = $this->httpurl($qrcode);
-
-        $background_iamge = imagecreatefromstring(file_get_contents($background));
-        $target_image = imagecreatefromstring(file_get_contents($target));
-        list($target_width, $target_height, $target_type) = getimagesize($target);
-        imagecopymerge($background_iamge , $target_image , 250, 700, 0, 0, $target_width, $target_height, 100);
-        list($background_width, $background_height, $background_type) = getimagesize($background);
-        switch ($background_type) {
-            case 1://gif
-                header('Content-Type:image/gif');
-                imagegif($background_iamge,$file);
-                break;
-            case 2://jpg
-                header('Content-Type:image/jpg');
-                imagejpeg($background_iamge,$file);
-                break;
-            case 3://jpg
-                header('Content-Type:image/png');
-                imagepng($background_iamge,$file);
-                break;
-            default:
-                break;
-        }
-        $savepath = $this->httpurlLocal($path);
-
-        $this->success("获取成功!",$savepath);
-    }
 
     /**
      * 获取银行列表

+ 1 - 1
application/api/controller/Uidsale.php

@@ -127,7 +127,7 @@ class Uidsale extends Api
         if(!$this->apiLimit()){
             $this->error('操作频繁');
         }
-        
+
         $id = input('id',0);
         if(!$id){
             $this->error();

+ 4 - 61
application/extra/site.php

@@ -23,7 +23,6 @@ return [
         'dictionary' => 'Dictionary',
         'currency' => '货币比例配置',
         'other' => '其他配置',
-        'egg' => '开箱子和大转盘',
         'sign' => '签到配置',
         'invite' => '邀请配置',
         'androidversion' => '安卓版本更新',
@@ -39,68 +38,13 @@ return [
     'mail_from' => '10000@qq.com',
     'email' => '',
     'mobile' => '',
-    'playdetail' => '<p>1.您可以用钻石进行游戏;</p><p>2.您可以一次开1次,10次,100次</p>',
-    'qrcode' => '/uploads/20210421/52b434e8ca3829603225aa5c13c2a465.png',
-    'miniqrcode' => '/uploads/20210307/55d9bb2934adc62470fb315ec8365034.png',
-    'guildAgreement' => '<p class="MsoNormal" style="text-align:center"><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">签约须知</span><span></span></span></p><p class="MsoNormal"><span style="font-family: &quot;等线 Light&quot;; font-size: 18px;">《GG语音声优入驻公会条款》(以下简称为“本条款”)为您入驻公会必备签约条款,请在签约前仔细阅读并勾选同意,方可入驻公会</span><span style="font-size: 18px;"></span><span style="font-size: 18px;"></span><span style="font-size: 18px;"></span><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:'."\r\n"
-        .'major-latin;mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin"><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;'."\r\n"
-        .'mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family:'."\r\n"
-        .'&quot;等线 Light&quot;;mso-bidi-theme-font:major-latin"><span style="font-size: 18px;">1、</span><span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: &quot;Times New Roman&quot;;"> </span></span><!--[endif]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">本条款本着自愿的原则,在伴声语音中为具有声优资格的用户提供一个交流互动的空间供加入,称为公会;</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;'."\r\n"
-        .'mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family:'."\r\n"
-        .'&quot;等线 Light&quot;;mso-bidi-theme-font:major-latin"><span style="font-size: 18px;">2、</span><span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: &quot;Times New Roman&quot;;"> </span></span><!--[endif]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">加入公会的方式有声优自主申请或者公会长邀请两种方式,此种行为为声优以及公会长的个人行为,与平台无关;</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;'."\r\n"
-        .'mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family:'."\r\n"
-        .'&quot;等线 Light&quot;;mso-bidi-theme-font:major-latin"><span style="font-size: 18px;">3、</span><span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: &quot;Times New Roman&quot;;"> </span></span><!--[endif]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">在经过公会长的审核通过之后,您将自动成为公会成员,在公会中应受到公会长在合理范围内的管理以及巡查;</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;'."\r\n"
-        .'mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family:'."\r\n"
-        .'&quot;等线 Light&quot;;mso-bidi-theme-font:major-latin"><span style="font-size: 18px;">4、</span><span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: &quot;Times New Roman&quot;;"> </span></span><!--[endif]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">平台注重并提倡保护用户隐私,不泄露用户个人信息,不售卖用户个人信息,用户一旦申请注销账号,则在合理范围内的信息保留期过后,用户信息将被删除;</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;'."\r\n"
-        .'mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family:'."\r\n"
-        .'&quot;等线 Light&quot;;mso-bidi-theme-font:major-latin"><span style="font-size: 18px;">5、</span><span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: &quot;Times New Roman&quot;;"> </span></span><!--[endif]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">平台提倡绿色交友健康生活;</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;'."\r\n"
-        .'mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family:'."\r\n"
-        .'&quot;等线 Light&quot;;mso-bidi-theme-font:major-latin"><span style="font-size: 18px;">6、</span><span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: &quot;Times New Roman&quot;;"> </span></span><!--[endif]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">您在公会以及平台的使用和表演中,若出现涉黄、涉爆、反恐、政治煽动、赌博以及其他在中华人民共和国中明令禁止的行为,一旦发现,平台将追究公会长以及您的法律责任,如情节严重,将保留数据提交公共安全部门以供调查;</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;'."\r\n"
-        .'mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family:'."\r\n"
-        .'&quot;等线 Light&quot;;mso-bidi-theme-font:major-latin"><span style="font-size: 18px;">7、</span><span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: &quot;Times New Roman&quot;;"> </span></span><!--[endif]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">本条款不涉及您的个人的政治立场,不强迫您绑定平台,仅作为平台约束和管制其中用户的必备条约;</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;'."\r\n"
-        .'mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family:'."\r\n"
-        .'&quot;等线 Light&quot;;mso-bidi-theme-font:major-latin"><span style="font-size: 18px;">8、</span><span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: &quot;Times New Roman&quot;;"> </span></span><!--[endif]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">您在日常的使用中,应当遵守基本的条约规范,如果发现有违背此条款的行为,可以向平台举报,平台会提供一定的举报奖励;</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;'."\r\n"
-        .'mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family:'."\r\n"
-        .'&quot;等线 Light&quot;;mso-bidi-theme-font:major-latin"><span style="font-size: 18px;">9、</span><span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: &quot;Times New Roman&quot;;"> </span></span><!--[endif]--><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">本条款会在不涉及用户隐私以及用户权益的前提下,会做不定时的更新,您可以在“我的”页面中,“主播条款”中随时查看最新的更新内容,如有异议,可向平台提出;</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count:'."\r\n"
-        .'0"><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">欢迎您成为GG语音的一员!</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count:'."\r\n"
-        .'0"><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;'."\r\n"
-        .'mso-fareast-theme-font:major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">本条款最终解释权归GG语音所有。</span><span></span></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-align:'."\r\n"
-        .'right;text-indent:0cm;mso-char-indent-count:0"><span style="font-family:&quot;等线 Light&quot;;'."\r\n"
-        .'mso-ascii-theme-font:major-latin;mso-fareast-theme-font:major-latin;mso-hansi-theme-font:'."\r\n"
-        .'major-latin"><span style="font-size: 18px;">GG语音运营团队</span><span></span></span></p><p><span style="font-size: 18px;"></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-align:'."\r\n"
-        .'right;text-indent:0cm;mso-char-indent-count:0"><span style="font-family:&quot;等线 Light&quot;;mso-ascii-theme-font:major-latin;mso-fareast-theme-font:'."\r\n"
-        .'major-latin;mso-hansi-theme-font:major-latin"><span style="font-size: 18px;">2023-07-03</span></span></p>',
-    'withdraw' => '<p>提现说明</p><p>1、GG语音服务人员随时可以申请提现,到账时间为T+1,如果遇到双休日或者国家法定节假日,则会在休假完毕后的第一个工作日的当日24:00前到账,如提现申请过多,可能会延迟到账,可联系官方在线客服进行咨询;</p><p>2、GG语音服务人员在平台内可以使用声币进行提现,提现收取5%的手续费</p><p>3、收益支持银行卡提现,GG语音服务人员需要先绑定本人经过实名认证的身份证信息才可以提现,绑定时务必确保所填信息真实有效,因为填写资料错误导致的提现失败损失由伴声服务人员自行承担。注意:同一个银行卡只能绑定一个实名认证用户,修改是不支持对账号主体(即真实姓名和身份证号)进行修改;</p><p>4、提现金额仅限整数,当前可提现额度小于30元时,不可进行收益体现,当日提现金额最高50000元;</p><p>5、如公司检测到GG语音服务人员的GG账户有作弊或者异常,或者违反国家法律法规的异常情况,公司将拒绝该GG语音服务人员对收入进行提现;</p><p>6、收益提现规则最终解释权归GG语音所有。</p>',
     'getempirical' => '1',
     'withdrawRate' => '95',
-    'appShare' => '/uploads/20210422/75744fbe87ee36e52ffffcb82acdc403.png',
     'roomLimit' => '10',
     'domain_name' => 'https://kge.huxiukeji.cn',
     'intro_image' => '/uploads/20230703/35b10db56529aa19086eeb3d1d0bb6b0.png',
-    'egggift_content' => '<p>我是奖励概览</p>',
     'sign_gift' => '0',
     'money_to_jewel' => '10',
-    'eggplay_paymoney_min' => '0',
     'invite_money' => '1',
     'exchange_define' => '1',
     'withdraw_define' => '1',
@@ -110,7 +54,6 @@ return [
         .'1、所有用户都可以参加邀请好友活动'."\r\n"
         .'2、通过自己分享的活动页面地址下载注册成功,'."\r\n"
         .'即发放注册奖励,若好友充值即奖励1元。',
-    'eggnew_global_show' => '1',
     'invite_gift' => '175',
     'invite_gift_num' => '0',
     'un_authentication_max' => '100',
@@ -122,14 +65,14 @@ return [
     'apisite_switch' => '1',
     'apisite_notice' => '今天维护!',
     'invite_max_money' => '100',
-    'android_is_force' => '0',
+    'android_is_force' => '1',
     'android_apkUrl' => 'https://oss.tken.vip/apk/app-release.apk',
-    'android_apkName' => 'TKEN1.0.2',
+    'android_apkName' => 'K歌1.0.1',
     'android_desc' => '修复已知问题,优化用户体验',
-    'android_versionCode' => '2',
+    'android_versionCode' => '1',
     'iso_is_force' => '1',
     'ios_downurl' => 'http://www.apple.com/store',
-    'iso_appname' => 'TKEN1.0.1',
+    'iso_appname' => 'K歌1.0.1',
     'iso_desc' => '这次更新了很多内容',
     'iso_versioncode' => '1',
     'ios_pay_sandbox' => '0',