Commit 3af7930d authored by 李尚科's avatar 李尚科

Fix

parent a72cf4af
Pipeline #13724 passed with stage
in 4 seconds
...@@ -287,8 +287,8 @@ class OrderService extends Service { ...@@ -287,8 +287,8 @@ class OrderService extends Service {
if (order && order.pay_status === 1) { if (order && order.pay_status === 1) {
ctx.failed('订单已支付无需重复支付'); ctx.failed('订单已支付无需重复支付');
} }
ctx.logger.info('11111111111111111111111111111111111'); // ctx.logger.info('11111111111111111111111111111111111');
const price = (order.price - order.preferential_price).toFixed(2); const price = (order.price - order.preferential_price).toFixed(2) * 100;
if (price <= 0) { if (price <= 0) {
ctx.failed('error price'); ctx.failed('error price');
...@@ -303,7 +303,7 @@ class OrderService extends Service { ...@@ -303,7 +303,7 @@ class OrderService extends Service {
body, body,
order_id, order_id,
trade_no: moment().valueOf() + ctx.helper.PrefixInteger(order_id, 11), trade_no: moment().valueOf() + ctx.helper.PrefixInteger(order_id, 11),
total_fee: price * 100, total_fee: price,
notify_url: `${this.config.OUT_P_NODE_URL}/51business/api/credit/order/wx_pay_notice`, notify_url: `${this.config.OUT_P_NODE_URL}/51business/api/credit/order/wx_pay_notice`,
product_id: order.order_no, product_id: order.order_no,
scene_info: JSON.stringify({ h5_info: { type: 'Wap', wap_url: this.config.PHP_URL, wap_name: '我的信用' }, }), scene_info: JSON.stringify({ h5_info: { type: 'Wap', wap_url: this.config.PHP_URL, wap_name: '我的信用' }, }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment