generated from root/miduo_client
cdn修改提交
parent
63653c5496
commit
412b779f30
|
|
@ -19,6 +19,6 @@
|
|||
"IS_NO_TALKING":{"desc":"", "versionCode":"1", "isActive":"0"},
|
||||
"IS_SELECT_RESLUTION":{"desc":"","versionCode":"1","isActive":"1"},
|
||||
"INNER_WEB_CONTROL":{"desc":"","versionCode":"1","isActive":"1"},
|
||||
"IS_NULL":{"desc":"","versionCode":"1","isActive":"1"}
|
||||
"IS_NULL":{"desc":"","versionCode":"5","isActive":"1"}
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
{"subChannel":"2000","buglyId":"261348dcd3","channel":"DUOYOU","resUrl":"http://cdn-jl.lanjingshidai.com/duoyou/","packageVersion":"0.1","version":"1.1.2","serverUrl":"http://82.157.34.193:8080/"}
|
||||
{"subChannel":"2000","buglyId":"261348dcd3","channel":"DUOYOU","resUrl":"resUrl":"http://cdn-jl.lanjingshidai.com/duoyou/","packageVersion":"0.1","version":"1.1.1","serverUrl":"http://49.232.144.151:8080/"}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"cdn_type":"cos_lj",
|
||||
"dir":"aiwan",
|
||||
"platform":"Android"
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"Setting":{
|
||||
"LanguagePackager":{"desc":"", "versionCode":"1", "isActive":"0"},
|
||||
"PACKAGE_CC_CODE":{"desc":"", "value":"4001", "versionCode":"1", "isActive":"1"},
|
||||
"ServerVersion":{"desc":"", "value":"0", "versionCode":"1", "isActive":"1"},
|
||||
"ThinkAnalysis_GetDeviceID":{"desc":"", "versionCode":"1", "isActive":"1"},
|
||||
"LayoutBuilderWrap":{"desc":"", "versionCode":"1", "isActive":"1"},
|
||||
"NOTICE_CHANNEL":{"desc":"", "value":"40001", "versionCode":"1", "isActive":"1"},
|
||||
"IS_TITLE_EFFECT_SCALE":{"desc":"", "versionCode":"1", "isActive":"1","value":"1"},
|
||||
"IS_PLAY_LOGIN_VIDEO":{"desc":"", "versionCode":"1", "isActive":"0"},
|
||||
"UPDATE_PANEL_BG":{"desc":"","versionCode":"1","isActive":"1","value":"loading7"},
|
||||
"IS_PLAY_VOICE":{"desc":"", "versionCode":"1", "isActive":"1"},
|
||||
"IS_SHOW_HEALTH_TIP":{"desc":"", "versionCode":"1", "isActive":"1"},
|
||||
"SPRITE_LOADER":{"desc":"", "versionCode":"1", "isActive":"1"},
|
||||
"UI_Layout_CanvasScaler":{"desc":"", "versionCode":"1", "isActive":"1"},
|
||||
"PACKAGE_CONFIG":{"desc":"", "versionCode":"1", "isActive":"1","value":"YX"},
|
||||
"IS_LOAD_STREAMING":{"desc":"", "versionCode":"1", "isActive":"1"},
|
||||
"CURVED_TEXT_CODE":{"desc":"", "versionCode":"1", "isActive":"1"},
|
||||
"IS_NO_TALKING":{"desc":"", "versionCode":"1", "isActive":"0"},
|
||||
"IS_SELECT_RESLUTION":{"desc":"","versionCode":"1","isActive":"1"},
|
||||
"INNER_WEB_CONTROL":{"desc":"","versionCode":"1","isActive":"1"},
|
||||
"IS_NULL":{"desc":"","versionCode":"5","isActive":"1"}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"subChannel":"2000","buglyId":"261348dcd3","channel":"HF","resUrl":"http://cdn-jl.lanjingshidai.com/haofan/","packageVersion":"0.1","version":"1.1.1","serverUrl":"http://60.1.1.161:8080/"}
|
||||
|
|
@ -1,16 +1,35 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import json
|
||||
import sys
|
||||
import requests
|
||||
from tencentcloud.common import credential
|
||||
from tencentcloud.common.profile.client_profile import ClientProfile
|
||||
from tencentcloud.common.profile.http_profile import HttpProfile
|
||||
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
||||
from tencentcloud.cdn.v20180606 import cdn_client, models
|
||||
|
||||
|
||||
if sys.argv.__len__() == 2:
|
||||
flashPath = sys.argv[1]
|
||||
urlPath = "http://smi.51sfsy.com/mrj/cdnrefresh?nonce=1532319693&token=881d1b9844fb78c165dad28752d67eb8&dirs="
|
||||
# path = urlPath + "'" + flashPath +"'"
|
||||
path = urlPath + flashPath
|
||||
print(path)
|
||||
r = requests.get(url= path)
|
||||
print(r.status_code)
|
||||
print(r.text)
|
||||
try:
|
||||
path = sys.argv[1]
|
||||
cred = credential.Credential("AKIDWrwlJbAMyOaYGjuzlHciZHkxve7K7Fp8", "B7mALGwOaXJrACyThjUzDArITNUMPFp9")
|
||||
httpProfile = HttpProfile()
|
||||
httpProfile.endpoint = "cdn.tencentcloudapi.com"
|
||||
|
||||
clientProfile = ClientProfile()
|
||||
clientProfile.httpProfile = httpProfile
|
||||
client = cdn_client.CdnClient(cred, "", clientProfile)
|
||||
|
||||
req = models.PurgePathCacheRequest()
|
||||
params = {
|
||||
"Paths": [ path ],
|
||||
"FlushType": "flush"
|
||||
}
|
||||
req.from_json_string(json.dumps(params))
|
||||
|
||||
resp = client.PurgePathCache(req)
|
||||
print(resp.to_json_string())
|
||||
|
||||
except TencentCloudSDKException as err:
|
||||
print(err)
|
||||
else:
|
||||
print("params error!")
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import json
|
||||
import sys
|
||||
from tencentcloud.common import credential
|
||||
from tencentcloud.common.profile.client_profile import ClientProfile
|
||||
from tencentcloud.common.profile.http_profile import HttpProfile
|
||||
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
||||
from tencentcloud.cdn.v20180606 import cdn_client, models
|
||||
|
||||
|
||||
if sys.argv.__len__() == 2:
|
||||
try:
|
||||
path = sys.argv[1]
|
||||
cred = credential.Credential("AKIDwhBYeT2LN8cqoa6ML2SbT5RVJq76pHSN", "f4C5h38vRhgPr2wZw2rPfeNpzsTord8M")
|
||||
httpProfile = HttpProfile()
|
||||
httpProfile.endpoint = "cdn.tencentcloudapi.com"
|
||||
|
||||
clientProfile = ClientProfile()
|
||||
clientProfile.httpProfile = httpProfile
|
||||
client = cdn_client.CdnClient(cred, "", clientProfile)
|
||||
|
||||
req = models.PurgePathCacheRequest()
|
||||
params = {
|
||||
"Paths": [ path ],
|
||||
"FlushType": "flush"
|
||||
}
|
||||
req.from_json_string(json.dumps(params))
|
||||
|
||||
resp = client.PurgePathCache(req)
|
||||
print(resp.to_json_string())
|
||||
|
||||
except TencentCloudSDKException as err:
|
||||
print(err)
|
||||
else:
|
||||
print("params error!")
|
||||
|
|
@ -79,9 +79,9 @@ class Cos_Upload():
|
|||
self.IsThread = isThread
|
||||
|
||||
# cdn config
|
||||
self.bucket = '648sy-tcx-1251752472'
|
||||
self.secret_id = "AKIDwhBYeT2LN8cqoa6ML2SbT5RVJq76pHSN"
|
||||
self.secret_key = "f4C5h38vRhgPr2wZw2rPfeNpzsTord8M"
|
||||
self.bucket = 'jl-1253729609'
|
||||
self.secret_id = "AKIDWrwlJbAMyOaYGjuzlHciZHkxve7K7Fp8"
|
||||
self.secret_key = "B7mALGwOaXJrACyThjUzDArITNUMPFp9"
|
||||
self.region = "ap-beijing"
|
||||
self.config = CosConfig(Region=self.region, SecretId=self.secret_id, SecretKey=self.secret_key, Token=None, Scheme='https')
|
||||
self.client = CosS3Client(self.config)
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,8 +0,0 @@
|
|||
账号未提供
|
||||
|
||||
bucket = '648sy-tcx-1251752472'
|
||||
secret_id = "AKIDwhBYeT2LN8cqoa6ML2SbT5RVJq76pHSN"
|
||||
secret_key = "f4C5h38vRhgPr2wZw2rPfeNpzsTord8M"
|
||||
region = "ap-beijing"
|
||||
|
||||
域名:http://c-tcx.648sy.com/
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
账号未提供
|
||||
|
||||
bucket = 'jl-1253729609'
|
||||
secret_id = "AKIDWrwlJbAMyOaYGjuzlHciZHkxve7K7Fp8"
|
||||
secret_key = "B7mALGwOaXJrACyThjUzDArITNUMPFp9"
|
||||
region = "ap-beijing"
|
||||
|
||||
域名:http://cdn-jl.lanjingshidai.com/
|
||||
Loading…
Reference in New Issue