user 6 年之前
父節點
當前提交
01a6a52a47
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      lib/index.js
  2. 1 1
      lib/index.js.map
  3. 1 1
      src/index.ts

+ 1 - 1
lib/index.js

@@ -143,7 +143,7 @@ class BankClient {
             const topicURL = this.urlBase + '/bank/private/' + encodeURIComponent(address) + '/' + encodeURIComponent(topic);
             yield this.webClient.requestJSON({
                 body: payload,
-                method: 'POST',
+                method: 'PUT',
                 url: topicURL
             });
         });

文件差異過大導致無法顯示
+ 1 - 1
lib/index.js.map


+ 1 - 1
src/index.ts

@@ -136,7 +136,7 @@ export class BankClient {
       const topicURL = this.urlBase + '/bank/private/' + encodeURIComponent(address) + '/' + encodeURIComponent(topic);
       await this.webClient.requestJSON({
         body: payload,
-        method: 'POST',
+        method: 'PUT',
         url: topicURL
       });
     }