|
@@ -50,18 +50,18 @@ function upload_file_common() {
|
|
|
echo $response
|
|
|
|
|
|
# 解析JSON响应,提取path字段
|
|
|
- local path=$(echo "$response" | jq -r '.path')
|
|
|
+ local path1=$(echo "$response" | jq -r '.path')
|
|
|
|
|
|
- if [ -z "$path" ]; then
|
|
|
+ if [ -z "$path1" ]; then
|
|
|
echo "Error: Failed to get the path from the response!"
|
|
|
return 1
|
|
|
fi
|
|
|
|
|
|
echo ''
|
|
|
- echo "https://alist.tianyunperfect.cn/oss_jing1/$path"
|
|
|
- echo "https://kedaoyun.tianyunperfect.cn/#explorer&pathFile=%7Bio:5%7D/$path"
|
|
|
- echo "https://oss_b_1.tianyunperfect.cn/$path"
|
|
|
- echo "https://tianyunperfect1.oss-cn-beijing.aliyuncs.com/$path"
|
|
|
+ echo "https://alist.tianyunperfect.cn/oss_jing1/$path1"
|
|
|
+ echo "https://kedaoyun.tianyunperfect.cn/#explorer&pathFile=%7Bio:5%7D/$path1"
|
|
|
+ echo "https://oss_b_1.tianyunperfect.cn/$path1"
|
|
|
+ echo "https://tianyunperfect1.oss-cn-beijing.aliyuncs.com/$path1"
|
|
|
}
|
|
|
|
|
|
# 上传文件到指定的URL
|