cgserver 6.3.3 → 6.3.4

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,10 +79,11 @@ 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
+ notifyUrl: this._cfg.notify_url,
82
83
  bizContent: {
83
84
  timeout_express: timeout_express,
84
85
  product_code: product_code,
85
- total_amount: total_amount + "",
86
+ total_amount: total_amount,
86
87
  subject: encodeURIComponent(subject),
87
88
  body: encodeURIComponent(body),
88
89
  out_trade_no: out_trade_no
@@ -28,10 +28,11 @@ 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
+ notifyUrl: string;
31
32
  bizContent: {
32
33
  timeout_express: string;
33
34
  product_code: string;
34
- total_amount: string;
35
+ total_amount: number;
35
36
  subject: string;
36
37
  body: string;
37
38
  out_trade_no: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.3.3",
3
+ "version": "6.3.4",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",