diff --git a/Tools/cos/UpLoad.py b/Tools/cos/UpLoad.py index c0be73aa2..c50f84003 100644 --- a/Tools/cos/UpLoad.py +++ b/Tools/cos/UpLoad.py @@ -92,7 +92,10 @@ class Cos_Upload(): settingJson = json.load(settingContent) self.cdn_sub_dir = settingJson["dir"] self.platform = settingJson["platform"] - self.EncryptKey = settingJson["EncryptKey"] + if ("EncryptKey" in settingJson) : + self.EncryptKey = settingJson["EncryptKey"] + else: + self.EncryptKey = "" def get_all_file(self): fo = open(self.change_file, "r") diff --git a/Tools/cos/灵动CDN参数.txt b/Tools/cos/灵动CDN参数.txt index 516d88ed6..390ac35c8 100644 --- a/Tools/cos/灵动CDN参数.txt +++ b/Tools/cos/灵动CDN参数.txt @@ -6,4 +6,6 @@ bucket = 'internal-jieling-1302131159' secret_id = "AKIDRJxLRFFzwcmiNlLzqPggdplPlrpVec2A" secret_key = "zh8JDqJZYLq42j9NL2RYOyGI9kDOIGxN" -region = "ap-guangzhou" \ No newline at end of file +region = "ap-guangzhou" + +域名:http://jl.tyu89.wang/ \ No newline at end of file diff --git a/Tools/cos_lj/UpLoad.py b/Tools/cos_lj/UpLoad.py index 7f3cf4f8a..39961361a 100644 --- a/Tools/cos_lj/UpLoad.py +++ b/Tools/cos_lj/UpLoad.py @@ -91,7 +91,10 @@ class Cos_Upload(): settingJson = json.load(settingContent) self.cdn_sub_dir = settingJson["dir"] self.platform = settingJson["platform"] - self.EncryptKey = settingJson["EncryptKey"] + if ("EncryptKey" in settingJson) : + self.EncryptKey = settingJson["EncryptKey"] + else: + self.EncryptKey = "" def get_all_file(self): fo = open(self.change_file, "r") diff --git a/Tools/cos_lj/蓝鲸CDN参数.txt b/Tools/cos_lj/蓝鲸CDN参数.txt index 462e7dfbd..2404a44cf 100644 --- a/Tools/cos_lj/蓝鲸CDN参数.txt +++ b/Tools/cos_lj/蓝鲸CDN参数.txt @@ -3,4 +3,6 @@ bucket = 'jl-1253729609' secret_id = "AKIDWrwlJbAMyOaYGjuzlHciZHkxve7K7Fp8" secret_key = "B7mALGwOaXJrACyThjUzDArITNUMPFp9" -region = "ap-beijing" \ No newline at end of file +region = "ap-beijing" + +域名:http://cdn-jl.lanjingshidai.com/ \ No newline at end of file diff --git a/Tools/cos_yougu/UpLoad.py b/Tools/cos_yougu/UpLoad.py index 40c826f48..0264cbdca 100644 --- a/Tools/cos_yougu/UpLoad.py +++ b/Tools/cos_yougu/UpLoad.py @@ -91,7 +91,10 @@ class Cos_Upload(): settingJson = json.load(settingContent) self.cdn_sub_dir = settingJson["dir"] self.platform = settingJson["platform"] - self.EncryptKey = settingJson["EncryptKey"] + if ("EncryptKey" in settingJson) : + self.EncryptKey = settingJson["EncryptKey"] + else: + self.EncryptKey = "" def get_all_file(self): fo = open(self.change_file, "r") diff --git a/Tools/cos_yougu/悠谷CDN参数.txt b/Tools/cos_yougu/悠谷CDN参数.txt index 00108c481..baf5fca82 100644 --- a/Tools/cos_yougu/悠谷CDN参数.txt +++ b/Tools/cos_yougu/悠谷CDN参数.txt @@ -3,4 +3,6 @@ bucket = '648sy-tcx-1251752472' secret_id = "AKIDwhBYeT2LN8cqoa6ML2SbT5RVJq76pHSN" secret_key = "f4C5h38vRhgPr2wZw2rPfeNpzsTord8M" -region = "ap-beijing" \ No newline at end of file +region = "ap-beijing" + +域名:http://c-tcx.648sy.com/ \ No newline at end of file