q-koa 12.3.0 → 12.3.1

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.
@@ -661,6 +661,9 @@ exports.profitsharing = async ({
661
661
  pay_config = 'weixin_pay',
662
662
  }) => {
663
663
  if (!ctx) throw new Error('?ctx')
664
+ if (amount === 0) throw new Error(`amount不能为0`)
665
+ if (amount % 1 !== 0) throw new Error(`amount需要是整数`)
666
+
664
667
  const { app, appName } = getAppByCtx(ctx)
665
668
 
666
669
  const appConfig = getConfig(app)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {