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 []; }