Browse Source

网址链接滥用修改

lizhen_gitee 3 months ago
parent
commit
b2dc399f5f

+ 2 - 2
application/admin/controller/agent/Dashboard.php

@@ -25,8 +25,8 @@ class Dashboard extends Backend
     {
 
         //推广链接 推广二维码
-        $extend_link = config('site.extend_link');
-        $extend_qrcode = config('site.domain_cdnurl') . config('site.extend_qrcode');
+        $extend_link = config('img_url');
+        $extend_qrcode = config('upload.cdnurl') . config('site.extend_qrcode');
 
         $user_info = Db::name('user')->where(['id' => $this->auth->user_id])->find();
         if (!$user_info) {

+ 6 - 6
application/api/controller/Userposter.php

@@ -7,7 +7,7 @@ use think\Db;
 /**
  * 用户海报
  */
-class Demo extends Api
+class Userposter extends Api
 {
 
 
@@ -28,7 +28,7 @@ class Demo extends Api
 
         //下载页二维码,没必要保留
         $params = [
-            'text' => config('site.domain_name').'?code=' . $data['introcode'],
+            'text' => config('img_url').'?code=' . $data['introcode'],
             'size' => 90,
             'logo' => false,
             'label' => false,
@@ -49,14 +49,14 @@ class Demo extends Api
     /*public function createhaibao($download_qrcode,$player_id,$sub_data){
 
         //背景图
-        $background = $sub_data['background'] ? $sub_data['background'] : config('site.domain_name').'/assets/img/haibao.png';
+        $background = $sub_data['background'] ? $sub_data['background'] : config('img_url').'/assets/img/haibao.png';
         //海报图片路径
         $new_path = 'uploads/hbplayer/'.date("Ymd").'/';
         mk_dir($new_path);
         $wap_file_name  = $new_path .'wap_player_'. $player_id . '.png';
 
         //二维码
-        $download_qrcode= config('site.domain_name').'/'.$download_qrcode;
+        $download_qrcode= config('img_url').'/'.$download_qrcode;
 
 
         //合成wap图片
@@ -68,7 +68,7 @@ class Demo extends Api
 
     public function createhaibao($download_qrcode,$player_id,$sub_data){
         //二维码
-        $download_qrcode= config('site.domain_name').'/'.$download_qrcode;
+        $download_qrcode= config('img_url').'/'.$download_qrcode;
 
         $data = [
             [
@@ -142,7 +142,7 @@ class Demo extends Api
         }
 
         foreach ($list as &$v) {
-            $v = config('img_url') . $this->createposter(config('site.domain_cdnurl') . $v);
+            $v = config('img_url') . $this->createposter(localpath_to_netpath($v));
         }
 
         $this->success('success', $list);

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

@@ -794,7 +794,7 @@ class Auth
         //访客数量
         $userinfo['visit_num'] = Db::name('user_visit')->where(['to_uid' => $this->id])->count('id');
         //分享下载链接
-        $userinfo['invite_url'] = config('site.extend_link') . '?code=' . $userinfo['introcode'];
+        $userinfo['invite_url'] = config('img_url') . '?code=' . $userinfo['introcode'];
 
 
         //礼物墙

+ 0 - 3
application/extra/site.php

@@ -43,12 +43,10 @@ return array (
     'category2' => '分类二',
     'custom' => '自定义',
   ),
-  'domain_name' => 'http://lejian.huxiukeji.cn/',
   'android_update_version' => '1.0.8',
   'money_to_gold' => '10',
   'roomLimit' => '10000',
   'gift_plat_scale' => '60',
-  'domain_cdnurl' => 'https://lejian-1326985955.cos.ap-shanghai.myqcloud.com',
   'guard_price' => '5200',
   'new_user_intro_gold' => '100',
   'intro_income_rebate_rate' => '10',
@@ -62,7 +60,6 @@ return array (
   'vip_chat_discount' => '9',
   'vip_video_discount' => '10',
   'extend_qrcode' => '/uploads/20221125/1c978c7620fa4ac52f789be83167f668.png',
-  'extend_link' => 'http://xinglian.huxiukeji.cn',
   'unlock_chat_gold' => '10',
   'withdrawal_rate' => '7',
   'free_greet_num' => '5',