mall + pay:

1、调整微信支付,修复 v2 传递的时间不正确
2、调整 mp js ticket 接口到 system 模块
This commit is contained in:
YunaiV
2023-07-06 00:19:05 +08:00
parent 20eb0a2a88
commit 67d60e32f8
23 changed files with 129 additions and 131 deletions

View File

@ -16,8 +16,8 @@
<script>
let shopOrderId = undefined;
let payOrderId = undefined;
// let server = 'http://127.0.0.1:48080';
let server = 'http://niubi.natapp1.cc';
let server = 'http://127.0.0.1:48080';
// let server = 'http://niubi.natapp1.cc';
// TODO openid
let openid = "ockUAwIZ-0OeMZl9ogcZ4ILrGba0";
$(function() {
@ -26,6 +26,9 @@
$.ajax({
url: server + "/app-api/wx/mp/create-jsapi-signature?url=" + document.location.href,
method: 'POST',
headers: {
'tenant-id': 1
},
success: function( result ) {
if (result.code !== 0) {
alert('获取 JsapiTicket 失败,原因:' + result.msg)