|
|
|
@ -257,7 +257,8 @@ JS |
|
|
|
return $app->order->unify([ |
|
|
|
'product_id' => $order->industry_product_id, |
|
|
|
'body' => mb_strcut($order->title, 0, 127), |
|
|
|
'out_trade_no' => $order->order_no . '-' . $order->status, //后面加status,主要是为了方便微信支付回调时区分定金(首付款)和尾款支付
|
|
|
|
//后面加status,主要是为了方便微信支付回调时区分定金(首付款)和尾款支付。substr(time(), -6)主要为了防止订单号重复
|
|
|
|
'out_trade_no' => $order->order_no . '-' . $order->status . substr(time(), -6), |
|
|
|
'total_fee' => round($price * 100), //支付金额单位为分
|
|
|
|
'trade_type' => 'NATIVE', // 请对应换成你的支付方式对应的值类型
|
|
|
|
]); |
|
|
|
|