Commit bc09529383a82ec6b8cfbafbc848b6487a0e36ea
1 parent
0183f5ad
提交代码
Showing
2 changed files
with
22 additions
and
18 deletions
src/main/webapp/WEB-INF/pages/check.html
... | ... | @@ -214,6 +214,8 @@ |
214 | 214 | if (res.err_msg == "get_brand_wcpay_request:ok") { |
215 | 215 | //$.alert("亲!支付成功!"); |
216 | 216 | //支付成功 |
217 | + | |
218 | + passHandrail(); | |
217 | 219 | window.location.href = mUrl.paySuccessView + '&payMoney=' + totleMoney; |
218 | 220 | |
219 | 221 | } else { |
... | ... | @@ -240,6 +242,26 @@ |
240 | 242 | jsApiCall(payParam); |
241 | 243 | } |
242 | 244 | } |
245 | + | |
246 | + | |
247 | + //支付成功后,调用此函数通知抬杆 | |
248 | + function passHandrail() { | |
249 | + var orderId = $('#parkOrderId').val(); | |
250 | + var req = { | |
251 | + orderId: orderId | |
252 | + } | |
253 | + | |
254 | + $.ajax({ | |
255 | + url: mUrl.passHandrail, | |
256 | + type: 'post', | |
257 | + dataType: 'json', | |
258 | + data: req, | |
259 | + success: function (res) { | |
260 | + console.log(res); | |
261 | + } | |
262 | + }) | |
263 | + | |
264 | + } | |
243 | 265 | </script> |
244 | 266 | </body> |
245 | 267 | </html> | ... | ... |
src/main/webapp/WEB-INF/pages/pay.html
... | ... | @@ -224,7 +224,6 @@ |
224 | 224 | //$.alert("亲!支付成功!"); |
225 | 225 | //支付成功 |
226 | 226 | //调用后台,通知抬杆放行 |
227 | - passHandrail(); | |
228 | 227 | window.location.href = mUrl.paySuccessView + '&payMoney=' + totleMoney; |
229 | 228 | |
230 | 229 | } else { |
... | ... | @@ -242,24 +241,7 @@ |
242 | 241 | ); |
243 | 242 | } |
244 | 243 | |
245 | - //支付成功后,调用此函数通知抬杆 | |
246 | - function passHandrail() { | |
247 | - var orderId = $('#parkOrderId').val(); | |
248 | - var req = { | |
249 | - orderId: orderId | |
250 | - } | |
251 | - | |
252 | - $.ajax({ | |
253 | - url: mUrl.passHandrail, | |
254 | - type: 'post', | |
255 | - dataType: 'json', | |
256 | - data: req, | |
257 | - success: function (res) { | |
258 | - console.log(res); | |
259 | - } | |
260 | - }) | |
261 | 244 | |
262 | - } | |
263 | 245 | |
264 | 246 | |
265 | 247 | function callpay(payParam) { | ... | ... |