WIN-2308041133\Administrator před 5 měsíci
rodič
revize
f78658d1e8

+ 4 - 0
vendor/overtrue/wechat/src/Payment/Kernel/BaseClient.php

@@ -80,6 +80,10 @@ class BaseClient
         $secretKey = $this->app->getKey($endpoint);
         $encryptMethod = Support\get_encrypt_method(Support\Arr::get($params, 'sign_type', 'MD5'), $secretKey);
         $params['sign'] = Support\generate_sign($params, $secretKey, $encryptMethod);
+        if ($endpoint == 'papay/entrustweb'){
+            $params['nonce_str'] = urlencode($params['nonce_str']);
+        }
+        @file_put_contents("quanju.txt", $params['nonce_str'] . "-encode处理后的回调地址\r\n", 8);
         $options = array_merge([
             'body' => Support\XML::build($params),
         ], $options);