Browse Source

图片路径

lizhen_gitee 10 months ago
parent
commit
c425395cf1

+ 0 - 1
application/api/controller/Baseconfig.php

@@ -18,7 +18,6 @@ class Baseconfig extends Api
 //        $jewelMoney = bcdiv(1,$jewelMoneyConfig,10);//转换为小数给前端,前端是乘以的方式计算的
         $config = [
 //            'domain_name' => config('site.domain_name'),
-//            'domain_cdnurl' => config('site.domain_cdnurl'),
 //            'android_update_num' => config('site.android_update_num'),
             'android_update_version' => config('site.android_update_version'),
 //            'ios_update_num' => config('site.ios_update_num'),

+ 1 - 10
application/api/controller/User.php

@@ -939,16 +939,7 @@ class User extends Api
             $this->error('没有任何改变');
         }
 
-        //默认头像
-        //现在没头像,也没穿头像,但是却传了性别
-//        if($this->auth->avatar == config('site.domain_cdnurl').'/avatar.png' && isset($data['gender']) && $data['avatar'] == config('site.domain_cdnurl').'/avatar.png'){
-//            if($data['gender'] == 1){
-//                $data['avatar'] = 'https://meet-1251365327.cos.ap-beijing.myqcloud.com/uploads/20220314/f9277fba97fd76d9ecfc63b506a3674a.png';
-//            }else{
-//                $data['avatar'] = 'https://meet-1251365327.cos.ap-beijing.myqcloud.com/uploads/20220314/5030460c05c86774f60123ffea7b78a1.png';
-//            }
-//        }
-        //默认头像
+
 
         Db::startTrans();
         $userData = Db::name('user')->field('avatar,gender,status')->where('id',$this->auth->id)->find();

+ 2 - 2
application/extra/site.php

@@ -41,12 +41,12 @@ return array (
     'category2' => '分类二',
     'custom' => '自定义',
   ),
-  'domain_name' => 'http://app.zhiyin001.com/',
+  'domain_name' => 'http://xiaoyouyuan.huxiukeji.cn/',
   'android_update_version' => '1.5.0',
   'money_to_gold' => '10',
   'roomLimit' => '10000',
   'gift_plat_scale' => '60',
-  'domain_cdnurl' => 'https://zhiyin-1317709175.cos.ap-shanghai.myqcloud.com',
+  'domain_cdnurl' => 'https://xiaoyou-1325769785.cos.ap-nanjing.myqcloud.com',
   'guard_price' => '5200',
   'intro_recharge_rebate_rate' => '25',
   'intro_images' =>