Jelajahi Sumber

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

吴昊天 3 tahun lalu
induk
melakukan
45b0aa7f58

+ 1 - 1
crmeb/crmeb/services/easywechat/miniPayment/WeChatClient.php

@@ -70,7 +70,7 @@ class WeChatClient extends AbstractAPI
             'sub_orders'=>[
             'sub_orders'=>[
                 [
                 [
                     'mchid'=>$this->merchant->merchant_id,
                     'mchid'=>$this->merchant->merchant_id,
-                    'amount'=>$order['total_fee'],
+                    'amount'=>(int)$order['total_fee'],
                     'trade_no'=>$order['out_trade_no'],
                     'trade_no'=>$order['out_trade_no'],
                     'description'=>$order['body']
                     'description'=>$order['body']
                 ]
                 ]

+ 1 - 1
crmeb/crmeb/services/upload/storage/Cos.php

@@ -380,7 +380,7 @@ class Cos extends BaseUpload
     {
     {
         try {
         try {
             $res = $this->app()->listBuckets();
             $res = $this->app()->listBuckets();
-            return $res->toArray()['Buckets'][0]['Bucket'] ?? [];
+            return $res->toArray()['Buckets'] ?? [];
         } catch (\Throwable $e) {
         } catch (\Throwable $e) {
             return [];
             return [];
         }
         }