q-koa 8.3.3 → 8.4.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.
@@ -70,7 +70,7 @@ exports.initData = async ({ includes, excludes, app, ctx }) => {
70
70
 
71
71
  if (app.controller[model] && app.controller[model][fn]) {
72
72
  return app.controller[model][fn](ctx, data).then((result) => {
73
- if (!result) {
73
+ if (!result && process.env.NODE_ENV !== 'production') {
74
74
  console.log(`需要在控制器${fn}中返回`)
75
75
  }
76
76
  return {
@@ -918,7 +918,7 @@ exports.notify = async (ctx) => {
918
918
  transactionid = result.xml.transaction_id
919
919
  } catch (e) {}
920
920
 
921
- console.log(order_id, '微信支付回调-----', model, order_price, transactionid)
921
+ // console.log(order_id, '微信支付回调-----', model, order_price, transactionid)
922
922
  if (app.service[model] && app.service[model].notify) {
923
923
  await app.service[model].notify({
924
924
  app,
@@ -1094,9 +1094,9 @@ exports.refund_notify = async (ctx) => {
1094
1094
  : Number(out_refund_no)
1095
1095
  const type = out_refund_no.includes('_') ? out_refund_no.split('_')[1] : ''
1096
1096
  const model = prefix ? `${prefix}_order` : 'order'
1097
- console.log(
1098
- `微信退款回调 prefix:${prefix}/model:${model}/order_id:${order_id}/type:${type}`
1099
- )
1097
+ // console.log(
1098
+ // `微信退款回调 prefix:${prefix}/model:${model}/order_id:${order_id}/type:${type}`
1099
+ // )
1100
1100
  if (app.service[model] && app.service[model].refund_notify) {
1101
1101
  await app.service[model].refund_notify({
1102
1102
  app,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "8.3.3",
3
+ "version": "8.4.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {