cgserver 6.3.2 → 6.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,14 +79,14 @@ class AlipayTool {
79
79
  */
80
80
  _buildOrderParams(out_trade_no, total_amount, subject = "1", body = "我是测试数据", timeout_express = "30m", product_code = "QUICK_MSECURITY_PAY") {
81
81
  let order_params = {
82
- bizContent: JSON.stringify({
82
+ bizContent: {
83
83
  timeout_express: timeout_express,
84
84
  product_code: product_code,
85
85
  total_amount: total_amount + "",
86
86
  subject: encodeURIComponent(subject),
87
87
  body: encodeURIComponent(body),
88
88
  out_trade_no: out_trade_no
89
- })
89
+ }
90
90
  };
91
91
  return order_params;
92
92
  }
@@ -28,7 +28,14 @@ declare class AlipayTool {
28
28
  * @returns
29
29
  */
30
30
  protected _buildOrderParams(out_trade_no: string, total_amount: number, subject?: string, body?: string, timeout_express?: string, product_code?: string): {
31
- bizContent: string;
31
+ bizContent: {
32
+ timeout_express: string;
33
+ product_code: string;
34
+ total_amount: string;
35
+ subject: string;
36
+ body: string;
37
+ out_trade_no: string;
38
+ };
32
39
  };
33
40
  protected _sign(order_params: any): any;
34
41
  getOrderInfo(out_trade_no: string, total_amount: number, subject?: string, body?: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.3.2",
3
+ "version": "6.3.3",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",