Commit 7294180c authored by 李尚科's avatar 李尚科

Fix

parent 7443a468
Pipeline #13722 passed with stage
in 6 seconds
......@@ -287,7 +287,7 @@ class OrderService extends Service {
if (order && order.pay_status === 1) {
ctx.failed('订单已支付无需重复支付');
}
const price = (order.price - order.preferential_price).toFixed(2) * 100;
const price = (order.price - order.preferential_price).toFixed(2);
if (price <= 0) {
ctx.failed('error price');
......@@ -302,7 +302,7 @@ class OrderService extends Service {
body,
order_id,
trade_no: moment().valueOf() + ctx.helper.PrefixInteger(order_id, 11),
total_fee: price,
total_fee: price * 100,
notify_url: `${this.config.OUT_P_NODE_URL}/51business/api/credit/order/wx_pay_notice`,
product_id: order.order_no,
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