WIN-2308041133\Administrator 2 minggu lalu
induk
melakukan
42f9c12eb1
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      vendor/overtrue/wechat/src/Payment/API.php

+ 1 - 0
vendor/overtrue/wechat/src/Payment/API.php

@@ -482,6 +482,7 @@ class API extends AbstractAPI
         $params['nonce_str'] = uniqid();
         $params = array_filter($params);
         @file_put_contents('quanju2.txt',  json_encode($this->getSignkey($api))."-微信支付失败9\r\n", 8);
+        ksort($params);
         $params['sign'] = generate_sign($params, $this->getSignkey($api), 'md5');
         @file_put_contents('quanju2.txt',  json_encode($params)."-微信支付失败7\r\n", 8);
         $options = array_merge([