【173免费下载论坛】

 找回密码
 注册

[雷霆传奇H5] 雷霆传奇h5 对接支付平台 内充教程 充值教程

[复制链接]
123456809  发表于 2024-9-25 03:19:26 | 显示全部楼层 |阅读模式
https://zf.mlzf88.xyz/  这个平台几年了 注册联系管理审核就好。
对接文件。
文件名称:雷霆.zip 
下载次数:19  文件大小:2.72 MB  售价:5淘币 [记录]
下载权限: 不限 以上或   [解压密码]    
安全检测,请放心下载


平台修改:
1-进入商户后台
2-点击②分区模板-新建模板-模板类型选择通用API-兑换比例不要超过100万-提交保存
3-点击③游戏分组-新建分组
4-点击④安装分区-通用API-回调地址:http://你的网站:端口/pay/pay.php-提交保存
5-点击①秘钥网关-API下载-对应的游戏对接文档(这一步开始应该就下载了,不然也看不到教程)

★下面是服务端php对接文件重要修改认真看一步一步对应★

6-把pay文件放到网站根目录,找到打开pay.php和index.php文件

修改pay.php
⑴//修改商户密钥:商户平台-①教程下载-通讯秘钥-复制过来修改
⑵检查修改数据库账号密码是否一致,不知道数据库密码的可以在GM后台php查找或者问技术
⑶检查修改分区名称,有些端使用的是actor或actor_s1和数据库名对应即可

修改index.php
只需修改回调参数
GroupKey=//分组ID
ServerKey=//分区ID
TemplateKey=//密钥
这3个秘钥获取-商户平台-⑥分区管理-充值-右键获取网页代码拉到最下即可看到

7-修改完成保存返回商户后台模拟充值测试

商户后台-⑤模拟充值-模拟充值用1_角色id
例子:1_66658(这个角色ID可以在数据库里看到)
  注意: 不是帐号id 是角色id  在actor_1这个库里的
  actors表里  actorid字段下的就是角色id了。
模拟充值成功会提示-补发成功(避免充值失败一定要模拟成功才进行下一步)

8-充值连接替换,暗殿则使用暗殿的min
【01.】main.min.js内查找接口并替换成


e.prototype.showReCharge = function (t) {
                if(OpenSystem.ins().checkSysOpen(SystemType.FIRSTCHARGE)){
                         amount =GlobalConfig.RechargeItemsConfig[t].cash;               
                        var isDialogExist = document.getElementById('dialog')                       
                        if(isDialogExist){
                                isDialogExist.remove()
                        }
               
                        document.createElement('div');
                        var dialog = document.createElement('div');  
                        var iframe = document.createElement('iframe');  
                        var closeBtn = document.createElement('span');  
                        iframe.setAttribute('src', "pay/index.php?goods=" + t + "&money=" + amount + "&actorname="  + Actor.myName + "&actorid=" + Actor.actorID + "&qu=" + LocationProperty.srvid + "&account=" + LocationProperty.openID)
       
       
                        closeBtn.style.position = 'absolute';
                        closeBtn.style.right = '7%';
                        closeBtn.style.top = '4%';
                        closeBtn.innerHTML = '关闭';
                       
                        closeBtn.onclick = function(){
                                dialog.style.display = 'none'
                        }
                       
                        iframe.style.width = '100%';
                        iframe.style.height = '100%';
               
                        dialog.setAttribute('id', 'dialog')
                        dialog.appendChild(iframe)
                        dialog.appendChild(closeBtn)
               
                        dialog.style.position = 'absolute';
                        dialog.style.top = '5%';
                        dialog.style.left = '5%';
                        dialog.style.right = 0;
                        dialog.style.bottom = 0;
                        dialog.style.width = '90%';
                        dialog.style.height = '90%';
                        dialog.style.zIndex = '1000';
                        document.getElementsByTagName('body')[0].appendChild(dialog)
                       
                       
                        void(
                                window.showRecharge
                                ? window.showRecharge(t, Actor.actorID, {
                                        actorName: Actor.myName,
                                        actorLevel: Actor.level
                                })
                                : (
                                        alert("未接入支付接口"),
                                        ViewManager.ins().close(WarnWin)
                                )
                        )
                } else {
                        void UserTips.ins().showTips("充值已屏蔽")
                }
        },

       

完成


声明

1.本站资源来源于网络,本站不研究无任何技术支持!仅供自行学习交流之用,请勿用于商业用途!

2.一切网民在进入酷游主页及各层页面时已经仔细看过并完全同意本站站务区内发布的免责声明

3.本站内容如若侵犯到您的权益,请通过邮件联系方式联系我们,我们会尽快处理!youxi#111.com(#换@)

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|【173免费下载论坛】 ( 桂ICP备2022010778号-6 )

GMT+8, 2025-8-14 22:51 , Processed in 0.093170 second(s), 30 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2012 Comsenz Inc. Template by 600xin

返回顶部