q-koa 12.1.6 → 12.2.0
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.
|
@@ -128,6 +128,7 @@ exports.checkLogin = async (ctx) => {
|
|
|
128
128
|
const result = await app.model.administrator.findOne({
|
|
129
129
|
where: {
|
|
130
130
|
id: ctx.request[`${appName}-user`].id,
|
|
131
|
+
name: ctx.request[`${appName}-user`].name || '',
|
|
131
132
|
password: ctx.request[`${appName}-user`].password || '',
|
|
132
133
|
},
|
|
133
134
|
attributes: {
|
|
@@ -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) => {
|