oak-pay-business 1.0.8 → 1.0.9

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.
@@ -7,6 +7,8 @@ const attrUpdateMatrix = {
7
7
  $or: [
8
8
  {
9
9
  channel: PAY_CHANNEL_OFFLINE_NAME,
10
+ },
11
+ {
10
12
  iState: {
11
13
  $in: ['unpaid', 'paying'],
12
14
  }
@@ -120,10 +120,7 @@ export default class WechatPay {
120
120
  getState: omit(result, ['mchid', 'appid', 'out_trade_no']),
121
121
  }
122
122
  };
123
- return [iState, {
124
- ...updateData,
125
- iState,
126
- }];
123
+ return [iState, updateData];
127
124
  }
128
125
  async close(pay) {
129
126
  const outTradeNo = compressTo32(pay.id);
@@ -9,6 +9,8 @@ const attrUpdateMatrix = {
9
9
  $or: [
10
10
  {
11
11
  channel: PayConfig_1.PAY_CHANNEL_OFFLINE_NAME,
12
+ },
13
+ {
12
14
  iState: {
13
15
  $in: ['unpaid', 'paying'],
14
16
  }
@@ -123,10 +123,7 @@ class WechatPay {
123
123
  getState: (0, lodash_1.omit)(result, ['mchid', 'appid', 'out_trade_no']),
124
124
  }
125
125
  };
126
- return [iState, {
127
- ...updateData,
128
- iState,
129
- }];
126
+ return [iState, updateData];
130
127
  }
131
128
  async close(pay) {
132
129
  const outTradeNo = (0, uuid_1.compressTo32)(pay.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oak-pay-business",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib/**/*",