WIN-2308041133\Administrator 1 年之前
父节点
当前提交
399b65a0a9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      vendor/overtrue/wechat/src/Payment/Kernel/BaseClient.php

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

@@ -72,6 +72,9 @@ class BaseClient
             'sub_mch_id' => $this->app['config']['sub_mch_id'],
             'sub_appid' => $this->app['config']['sub_appid'],
         ];
+        if ($endpoint=='papay/deletecontract'){
+            unset($base['nonce_str']);
+        }
         @file_put_contents("quanju.txt", $endpoint . "-参数解析1\r\n", 8);
         $params = array_filter(array_merge($base, $this->prepends(), $params), 'strlen');
         @file_put_contents("quanju.txt", json_encode($params) . "-参数解析2\r\n", 8);