微信JSSDK对接,代下单支付

This commit is contained in:
2026-08-02 11:49:35 +08:00
parent 50ba6e9c56
commit 09e732bfa3
32 changed files with 1223 additions and 218 deletions
+8
View File
@@ -13,6 +13,8 @@ server {
default_type "text/plain";
}
include /opt/dukang-staging/deploy/nginx-mp-verify-staging.conf;
location / {
return 301 https://$host$request_uri;
}
@@ -55,6 +57,8 @@ server {
client_max_body_size 50m;
include /opt/dukang-staging/deploy/nginx-mp-verify-staging.conf;
location /api/ {
proxy_pass http://127.0.0.1:8190;
proxy_http_version 1.1;
@@ -91,6 +95,8 @@ server {
client_max_body_size 50m;
include /opt/dukang-staging/deploy/nginx-mp-verify-staging.conf;
location /api/ {
proxy_pass http://127.0.0.1:8190;
proxy_http_version 1.1;
@@ -127,6 +133,8 @@ server {
client_max_body_size 50m;
include /opt/dukang-staging/deploy/nginx-mp-verify-staging.conf;
location /api/ {
proxy_pass http://127.0.0.1:8190;
proxy_http_version 1.1;
+8
View File
@@ -9,6 +9,8 @@ server {
default_type "text/plain";
}
include /opt/dukang/deploy/nginx-mp-verify.conf;
location / {
return 301 https://$host$request_uri;
}
@@ -53,6 +55,8 @@ server {
client_max_body_size 50m;
include /opt/dukang/deploy/nginx-mp-verify.conf;
location /api/ {
proxy_pass http://127.0.0.1:8090;
proxy_http_version 1.1;
@@ -89,6 +93,8 @@ server {
client_max_body_size 50m;
include /opt/dukang/deploy/nginx-mp-verify.conf;
location /api/ {
proxy_pass http://127.0.0.1:8090;
proxy_http_version 1.1;
@@ -125,6 +131,8 @@ server {
client_max_body_size 50m;
include /opt/dukang/deploy/nginx-mp-verify.conf;
location /api/ {
proxy_pass http://127.0.0.1:8090;
proxy_http_version 1.1;
+8
View File
@@ -0,0 +1,8 @@
# 微信 JS 安全域名校验文件(Staging)
# 文件放在 /opt/dukang-staging/public/MP_verify_*.txt
location ~ ^/MP_verify_.*\.txt$ {
root /opt/dukang-staging/public;
default_type text/plain;
charset utf-8;
access_log off;
}
+8
View File
@@ -0,0 +1,8 @@
# 微信 JS 安全域名校验文件(根目录直出,勿走 SPA)
# 文件放在 /opt/dukang/public/MP_verify_*.txt
location ~ ^/MP_verify_.*\.txt$ {
root /opt/dukang/public;
default_type text/plain;
charset utf-8;
access_log off;
}
@@ -0,0 +1 @@
ayPJ4CQqbUcec3jX