From 45b0aa7f5888e90b3dc7b729f5166c5d9fb8770a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Thu, 25 Aug 2022 09:19:51 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=94=AF=E4=BB=98=EF=BC=8C=E4=BF=AE=E5=A4=8Dcos?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/easywechat/miniPayment/WeChatClient.php | 2 +- crmeb/crmeb/services/upload/storage/Cos.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crmeb/crmeb/services/easywechat/miniPayment/WeChatClient.php b/crmeb/crmeb/services/easywechat/miniPayment/WeChatClient.php index 34cae0833..4bfeda084 100644 --- a/crmeb/crmeb/services/easywechat/miniPayment/WeChatClient.php +++ b/crmeb/crmeb/services/easywechat/miniPayment/WeChatClient.php @@ -70,7 +70,7 @@ class WeChatClient extends AbstractAPI 'sub_orders'=>[ [ 'mchid'=>$this->merchant->merchant_id, - 'amount'=>$order['total_fee'], + 'amount'=>(int)$order['total_fee'], 'trade_no'=>$order['out_trade_no'], 'description'=>$order['body'] ] diff --git a/crmeb/crmeb/services/upload/storage/Cos.php b/crmeb/crmeb/services/upload/storage/Cos.php index 1d251d189..2e6734a27 100644 --- a/crmeb/crmeb/services/upload/storage/Cos.php +++ b/crmeb/crmeb/services/upload/storage/Cos.php @@ -380,7 +380,7 @@ class Cos extends BaseUpload { try { $res = $this->app()->listBuckets(); - return $res->toArray()['Buckets'][0]['Bucket'] ?? []; + return $res->toArray()['Buckets'] ?? []; } catch (\Throwable $e) { return []; }