前言
彩虹易支付是一款专业的聚合支付系统,支持支付宝、微信支付、QQ钱包等多种主流支付方式。它通过极简接入方式(仅需7行代码)和强大的订单管理功能,帮助用户快速搭建支付模块并实现半小时内上线。平台运行于阿里云计算中心,保障支付数据安全与稳定,同时通过交易数据分析助力商户优化运营。彩虹易支付不介入资金流,由微信或支付宝官方直接结算,确保资金安全。其还提供详细的接入文档和7×24小时客服支持,适用于电商、在线教育、数字娱乐等多场景,是中小微企业理想的支付解决方案。
预览

环境
Nginx1.20+
Myqsl5.6+
php7.0+
Nginx伪静态
location / {
if (!-e $request_filename) {
rewrite ^/(.[a-zA-Z0-9-_]+).html$ /index.php?mod=$1 last;
}
rewrite ^/pay/(.*)$ /pay.php?s=$1 last;
rewrite ^/api/(.*)$ /api.php?s=$1 last;
rewrite ^/doc/(.[a-zA-Z0-9-_]+).html$ /index.php?doc=$1 last;
}
location ^~ /plugins {
deny all;
}
location ^~ /includes {
deny all;
}
IIS伪静态
<rule name="payrule1_rewrite" stopProcessing="true">
<match url="^(.[a-zA-Z0-9-_]+).html"/>
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php?mod={R:1}"/>
</rule>
<rule name="payrule2_rewrite" stopProcessing="true">
<match url="^pay/(.*)"/>
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="pay.php?s={R:1}"/>
</rule>
<rule name="payrule3_rewrite" stopProcessing="true">
<match url="^api/(.*)"/>
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="api.php?s={R:1}"/>
</rule>
<rule name="payrule4_rewrite" stopProcessing="true">
<match url="^doc/(.[a-zA-Z0-9-_]+).html"/>
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php?doc={R:1}"/>
</rule>
感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自安笙の博客
THE END
暂无评论内容