|
|
@@ -101,11 +101,12 @@ class CreateOrder extends API {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ let notify_url = config.url + '/Order/CallBack'
|
|
|
const payParams = {
|
|
|
pid: paymentConfig.pid,
|
|
|
type: pay_type,
|
|
|
out_trade_no: orderId,
|
|
|
- notify_url: config.url + '/Order/CallBack',
|
|
|
+ notify_url,
|
|
|
return_url: paymentConfig.return_url + orderId,
|
|
|
name: goods.name,
|
|
|
money: goods.price
|
|
|
@@ -119,11 +120,13 @@ class CreateOrder extends API {
|
|
|
EX: 300
|
|
|
})
|
|
|
|
|
|
+ let payUrl = paymentConfig.url + '/submit.php'
|
|
|
+
|
|
|
return res.json({
|
|
|
...BaseStdResponse.OK,
|
|
|
id: orderId,
|
|
|
pay: {
|
|
|
- payUrl: paymentConfig.url + '/submit.php',
|
|
|
+ payUrl,
|
|
|
payData: payParams
|
|
|
}
|
|
|
})
|