【程序目录】修复小程序新版支付,修复cos同步

This commit is contained in:
吴昊天 2022-08-25 09:19:51 +08:00
parent 142e08088c
commit 45b0aa7f58
2 changed files with 2 additions and 2 deletions

View File

@ -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']
]

View File

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