From 5195f882016b764e7a46d21641764d895303bb69 Mon Sep 17 00:00:00 2001 From: lihsai0 Date: Wed, 21 Feb 2024 17:02:25 +0800 Subject: [PATCH 1/2] fix typo on ci step name --- .github/workflows/test-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml index c76b39e5..00f964e4 100644 --- a/.github/workflows/test-ci.yml +++ b/.github/workflows/test-ci.yml @@ -57,7 +57,7 @@ jobs: QINIU_TEST_BUCKET: ${{ secrets.QINIU_TEST_BUCKET }} QINIU_TEST_DOMAIN: ${{ secrets.QINIU_TEST_DOMAIN }} - - name: Print mock servion log + - name: Print mock server log if: ${{ failure() }} run: | cat phpd.log From ba9657de44ea14ab1406861b1352a96d95e0dbb9 Mon Sep 17 00:00:00 2001 From: lihsai0 Date: Wed, 21 Feb 2024 17:03:52 +0800 Subject: [PATCH 2/2] add some deprecated PutPolicy fields --- CHANGELOG.md | 3 +++ src/Qiniu/Auth.php | 4 ++++ src/Qiniu/Config.php | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f750eac..0501b5aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 7.12.1 (2024-02-21) +* 对象存储,添加上传策略部分字段 + ## 7.12.0 (2023-12-11) * 对象存储,支持归档直读存储 * 对象存储,批量操作支持自动查询 rs 服务域名 diff --git a/src/Qiniu/Auth.php b/src/Qiniu/Auth.php index d99c365c..347595e4 100644 --- a/src/Qiniu/Auth.php +++ b/src/Qiniu/Auth.php @@ -202,6 +202,10 @@ public function uploadToken($bucket, $key = null, $expires = 3600, $policy = nul 'deleteAfterDays', 'fileType', 'isPrefixalScope', + + 'transform', // deprecated + 'transformFallbackKey', // deprecated + 'transformFallbackMode', // deprecated ); private static function copyPolicy(&$policy, $originPolicy, $strictPolicy) diff --git a/src/Qiniu/Config.php b/src/Qiniu/Config.php index 75dfc949..e4d597e0 100644 --- a/src/Qiniu/Config.php +++ b/src/Qiniu/Config.php @@ -4,7 +4,7 @@ final class Config { - const SDK_VER = '7.12.0'; + const SDK_VER = '7.12.1'; const BLOCK_SIZE = 4194304; //4*1024*1024 分块上传块大小,该参数为接口规格,不能修改