north 8 vuotta sitten
vanhempi
sitoutus
a96807dc6e
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      www/vue/src/config/api.js

+ 3 - 3
www/vue/src/config/api.js

@@ -35,9 +35,9 @@ export default ({
   },
   //  获取支付信息
   getPayOrderChange: function (orderID, payChannel, cb) {
-    config.formData.append('order_id', orderID)
-    config.formData.append('pay_channel', payChannel)
-    axios.post('o2o/order/pay', config.formData).then(function (res) {
+    let test = [{user_id: config.userId}, {order_id: orderID}, {pay_channel: payChannel}]
+    let json = JSON.stringify(test)
+    axios.post('o2o/order/pay', json).then(function (res) {
       cb(res.data)
     }).catch(function (e) {
       console.log(e)