q-koa 12.1.5 → 12.1.7

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.
@@ -8,7 +8,9 @@ module.exports = {
8
8
  reference: [
9
9
  {
10
10
  common: true,
11
- admin: true,
11
+ admin: {
12
+ name: 'admin',
13
+ },
12
14
  name: '过滤器',
13
15
  key: 'operate_filter',
14
16
  width: 150,
@@ -967,6 +967,7 @@ exports.mp_pay = async (ctx) => {
967
967
  is_admin = false,
968
968
  config = 'weixin_mp',
969
969
  pay_config = 'weixin_pay',
970
+ profit_sharing = 'N',
970
971
  } = ctx.request.body
971
972
 
972
973
  if (price === 0) throw new Error('价格不能为0')
@@ -1024,6 +1025,7 @@ exports.mp_pay = async (ctx) => {
1024
1025
  total_fee: is_admin || is_dev ? 1 : Math.round(price * 100),
1025
1026
  spbill_create_ip: '192.168.2.210',
1026
1027
  notify_url,
1028
+ profit_sharing,
1027
1029
  })
1028
1030
 
1029
1031
  const checkOrder = (obj) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.1.5",
3
+ "version": "12.1.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {