Browse Source

换校友缘的cos

lizhen_gitee 10 months ago
parent
commit
3c10c956bb

+ 7 - 7
addons/cos/config.php

@@ -6,7 +6,7 @@ return [
         'title' => 'AppID',
         'type' => 'string',
         'content' => [],
-        'value' => '1317709175',
+        'value' => '1325769785',
         'rule' => 'required',
         'msg' => '',
         'tip' => '请前往腾讯控制台 > 访问管理 > API密钥',
@@ -18,7 +18,7 @@ return [
         'title' => 'SecretId',
         'type' => 'string',
         'content' => [],
-        'value' => 'AKID42mMlxveBXgaFhz63nNipjPr7B1g7KOE',
+        'value' => 'AKID1KjDlOvRvHkMwm2iflInImClFe3SmYOC',
         'rule' => 'required',
         'msg' => '',
         'tip' => '请前往腾讯控制台 > 访问管理 > API密钥',
@@ -30,7 +30,7 @@ return [
         'title' => 'SecretKey',
         'type' => 'string',
         'content' => [],
-        'value' => 'h9OOFrHTRBj5DH6h3B4jARWO2PbaR8ct',
+        'value' => 'wn2EIOeH3HDKhBmYahxPyeQK72DjNNTs',
         'rule' => 'required',
         'msg' => '',
         'tip' => '请前往腾讯控制台 > 访问管理 > API密钥',
@@ -42,7 +42,7 @@ return [
         'title' => '存储桶名称',
         'type' => 'string',
         'content' => [],
-        'value' => 'zhiyin-1317709175',
+        'value' => 'xiaoyou-1325769785',
         'rule' => 'required',
         'msg' => '',
         'tip' => '存储空间名称',
@@ -54,7 +54,7 @@ return [
         'title' => '地域名称',
         'type' => 'string',
         'content' => [],
-        'value' => 'ap-shanghai',
+        'value' => 'ap-nanjing',
         'rule' => 'required',
         'msg' => '',
         'tip' => '请输入地域简称,请注意使用英文',
@@ -96,7 +96,7 @@ return [
         'title' => '上传接口地址',
         'type' => 'string',
         'content' => [],
-        'value' => 'https://zhiyin-1317709175.cos.ap-shanghai.myqcloud.com',
+        'value' => 'https://xiaoyou-1325769785.cos.ap-nanjing.myqcloud.com',
         'rule' => 'required',
         'msg' => '',
         'tip' => '请输入你的上传接口地址',
@@ -108,7 +108,7 @@ return [
         'title' => 'CDN地址',
         'type' => 'string',
         'content' => [],
-        'value' => 'https://zhiyin-1317709175.cos.ap-shanghai.myqcloud.com',
+        'value' => 'https://xiaoyou-1325769785.cos.ap-nanjing.myqcloud.com',
         'rule' => 'required',
         'msg' => '',
         'tip' => '请配置你的CDN地址或在存储桶基础配置中获取',

+ 1 - 1
application/admin/view/general/attachment/index.html

@@ -24,7 +24,7 @@
             <div class="tab-pane fade active in" id="one">
                 <div class="widget-body no-padding">
                     <div id="toolbar" class="toolbar">
-                        {:build_toolbar('refresh')}
+                        {:build_toolbar('refresh,add')}
                         <!--<a class="btn btn-info btn-classify dropdown-toggle btn-disabled disabled {:$auth->check('general/attachment/edit')?'':'hide'}"><i class="fa fa-arrow-right"></i> {:__('Classify')}</a>-->
                     </div>
                     <table id="table" class="table table-striped table-bordered table-hover table-nowrap"

+ 10 - 9
application/config.php

@@ -316,19 +316,19 @@ return [
         'SecretId' => 'AKID42mMlxveBXgaFhz63nNipjPr7B1g7KOE',
         'SecretKey' => 'h9OOFrHTRBj5DH6h3B4jARWO2PbaR8ct',
     ],
-    //腾讯cos
+    //腾讯cos   校友缘 正式
     'cos'                  => [
-        'appid' => '1317709175',
+        'appid' => '1325769785',
         // 链接
-        "url"         => 'https://zhiyin-1317709175.cos.ap-shanghai.myqcloud.com',
+        "url"         => 'https://xiaoyou-1325769785.cos.ap-nanjing.myqcloud.com',
         // 固定密钥
-        'secretId'     => 'AKID42mMlxveBXgaFhz63nNipjPr7B1g7KOE',
+        'secretId'     => 'AKID1KjDlOvRvHkMwm2iflInImClFe3SmYOC',
         // 固定密钥
-        'secretKey'      => 'h9OOFrHTRBj5DH6h3B4jARWO2PbaR8ct',
+        'secretKey'      => 'wn2EIOeH3HDKhBmYahxPyeQK72DjNNTs',
         // 存储桶
-        'bucket'      => 'zhiyin-1317709175',
+        'bucket'      => 'xiaoyou-1325769785',
         // bucket 所在园区
-        'region'      => 'ap-shanghai',
+        'region'      => 'ap-nanjing',
         // 密钥有效期
         'durationSeconds'      => 1800,
         // 允许的路径前缀,可以根据自己网站的用户登录态判断允许上传的具体路径,例子: a.jpg 或者 a/* 或者 * (使用通配符*存在重大安全风险, 请谨慎评估使用)
@@ -366,8 +366,8 @@ return [
     ],
 
     //头像
-    'avatar_boy' => 'https://zhiyin-1317709175.cos.ap-shanghai.myqcloud.com/boy.png',
-    'avatar_girl' => 'https://zhiyin-1317709175.cos.ap-shanghai.myqcloud.com/girl.png',
+    'avatar_boy' => 'https://xiaoyou-1325769785.cos.ap-nanjing.myqcloud.com/boy.png',
+    'avatar_girl' => 'https://xiaoyou-1325769785.cos.ap-nanjing.myqcloud.com/girl.png',
     //腾讯云 实名认证二要素/人脸核身
     'tencent_yun' => [
         'secret_id' => 'IDAisIo7',
@@ -376,6 +376,7 @@ return [
     ],
     //图片路径
     'img_url'                   => 'http://app.zhiyin001.com',
+    'img_url'                   => 'https://xiaoyou-1325769785.cos.ap-nanjing.myqcloud.com',
     //支付宝 rsa公钥 私钥  支付宝公钥
     'ali_app_id' => '', //appid
     'ali_sign_type' => 'RSA2', //签名

+ 1 - 1
application/extra/upload.php

@@ -9,7 +9,7 @@ return [
     /**
      * CDN地址
      */
-    'cdnurl'    => 'https://zhiyin-1317709175.cos.ap-shanghai.myqcloud.com',
+    'cdnurl'    => 'https://xiaoyou-1325769785.cos.ap-nanjing.myqcloud.com',
     /**
      * 文件保存格式
      */