一、源码简介

最新版MYMPay码支付开源版系统源码,个人免签支付聚合支付系统

安装环境:

PHP:7.0-8.2 (推荐使用7.4)

MySQL:5.6版本

访问 http://你的域名/install 进行安装

后台地址:http://你的域名/Admin/

账号:admin 密码123456

内附云端地址分享

二、效果展示

部分代码如下(示例):

function cookie_zt($res,$status=null)//cookie检测
{
global $DB,$conf,$date;
	if($res['status']!=1){
		if($res['type']=='wxpay' and $res['hook_type']==0)
			if($res['channel']=='mg_vzq' or $res['channel']=='mg_wx_uos'){
			    return ['msg'=>'<font color=red>本地未登录</font>','status'=>false];
			}elseif($res['channel']=='yd_vzq' or $res['channel']=='mg_wx_uos'){
			    return ['msg'=>'<font color=red>云端未登录</font>','status'=>false];
			}else{
			    return ['msg'=>'<font color=red>未绑定店员或已解绑->'.$res['endtime'].'</font>','status'=>false];
			}
		elseif($res['hook_type']==0)
			return ['msg'=>'<font color=red>CK状态失效->'.$res['endtime'].'</font>','status'=>false];
		elseif($res['hook_type']==1)
			return ['msg'=>'<font color=red>软件不在线或已掉线</font>','status'=>false];
		elseif($res['type']=='wxpay' and $res['hook_type']=2)
		    return ['msg'=>'<font color=red>云端不在线或已掉线</font>','status'=>false];
		elseif($res['type']=='alipay' and $res['hook_type']=2)
		    return ['msg'=>'<font color=red>云端配置异常或未配置</font>','status'=>false];
		else
		    return ['msg'=>'<font color=red>云端不在线或已掉线</font>','status'=>false];
	}else{
		if($res['type']=='wxpay'){
		    if($res['channel']=='mg_vzq' or $res['channel']=='yd_vzq'){
		        if($res['hook_type']==0){
		            return ['msg'=>'<font color=green>本地在线中</font>','status'=>true];
		        }else{
		            return ['msg'=>'<font color=green>云端在线中</font>','status'=>true];
		        }
		    }else{
		        $login_time = time();
		        $login_wxpay = $DB->query("SELECT * FROM `pay_wechat_trumpet` WHERE `status`='1' and `login_time`>'{$login_time}' and `wx_name`='{$res['wx_name']}' limit 1")->fetch();
		        if($login_wxpay){
		            return ['msg'=>'<font color=green>店员在线中</font>','status'=>true];
		        }elseif($res['hook_type']==0){
		            return ['msg'=>'<font color=red>绑定的店员已掉线,请联系站长处理</font>','status'=>false];
		        }elseif($res['hook_type']==1 and $res['crontime']>time()){
		            return ['msg'=>'<font color=green>软件在线中</font>','status'=>true];
		        }elseif($res['hook_type']==1 and $res['crontime']<time()){
		            return ['msg'=>'<font color=red>软件不在线或已掉线</font>','status'=>false];
		        }else{
		            return ['msg'=>'<font color=green>云端在线中</font>','status'=>true];
		        }
		    }
		}elseif($res['hook_type']==0){
		    return ['msg'=>'<font color=green>本地在线中</font>','status'=>true];
		}elseif($res['type']=='alipay' and $res['hook_type']==2){
		    if($DB->query("SELECT * FROM `pay_alidata` WHERE `qr_id`='{$res['id']}' limit 1")->fetch()){
		        return ['msg'=>'<font color=green>云端在线中</font>','status'=>true];
		    }else{
		        return ['msg'=>'<font color=red>支付宝云端未配置应用</font>','status'=>false];
		    }
		}elseif($res['type']=='qqpay' and $res['hook_type']==2 and $res['status']==1){
		    return ['msg'=>'<font color=green>云端在线中</font>','status'=>true];
		}elseif($res['type']=='qqpay' and $res['hook_type']==2){
		    return ['msg'=>'<font color=red>云端不在线或已掉线</font>','status'=>false];
		}elseif($res['hook_type']==1 and $res['crontime']>time()){
		    return ['msg'=>'<font color=green>PC软件正常在线</font>','status'=>true];
		}elseif($res['hook_type']==1 and $res['crontime']<time()){
		    return ['msg'=>'<font color=red>PC软件不在线或已掉线</font>','status'=>false];
		}
	}
}

function cookie_zt_pc($zt,$crontime)//cookie检测
{
	if($zt==1 and $crontime>time())
		return '<font color=green>PC软件正常在线</font>';
	else
		return '<font color=red>PC软件不在线或已掉线</font>';
}

function price_zt($res)//出码状态
{
	if($res['price']==-0.01)
		return '<font color=red>站点不行,请提醒站长</font>';
	elseif($res['price']>0.00)
		return '<font color=green>通讯完成</font>';
	elseif($res['apittime']>=time())
		return '<font color=red>正在与站点通讯...</font>';
	else
		return '<font color=red>当前订单重复</font>';
}

function pay_type($res)//支付方式中文化
{
    if(strstr($res['channel'], 'mg_vzq') or strstr($res['channel'], 'yd_vzq'))
        return '<font color=green>微信转QQ</font>';
    elseif(strstr($res['type'], 'qqpay'))
		return '<font color=green>QQ钱包</font>';
	elseif(strstr($res['type'], 'wxpay'))
	    if($res['channel']=='yd_wx_uos'){
	        return '<font color=green>微信UOS通用</font>';
	    }elseif(strstr($res['channel'], 'yd_wx_gskd')){
	        return '<font color=green>收款单个人版</font>'; 
	    }elseif(strstr($res['channel'], 'yd_wx_sskd')){
	        return '<font color=green>收款单商家版</font>';
	    }else{
	        return '<font color=green>微信</font>';
	    }
	elseif(strstr($res['type'], 'alipay'))
	    if($res['channel']=='mg_alimp'){
	        return '<font color=green>收款名片</font>';
	    }elseif($res['channel']=='pc_alijk'){
	        return '<font color=green>手机监控</font>';
	    }else{
	        return '<font color=green>支付宝</font>';
	    }
	elseif(strstr($res['type'], 'usdt'))
	    return '<font color=green>USDT-TRC20</font>';
	elseif(strstr($res['type'], 'qqhpay'))
	    return '<font color=green>QQ红包</font>';
}
function wachat_login_zt($login_time)//微信店员在线状态
{
	if($login_time>=time())
		return '<font color=green>在线</font>';
	else
		return '<font color=red>不在线</font>';
}
function wachat_zt($status)//上下架状态
{
	if($status==1)
		return '<font color=green>已上架</font>';
	else
		return '<font color=red>已下架</font>';
}

function order_zt($res)//订单状态
{
	if($res['status']==1)
		return '<font color=green>已完成</font>';
	elseif($res['status']==2)
		return '<font color=red>订单失效</font>';
	else
		return '<font color=red>未完成</font>';
}

function hook_type($res)
{
    if($res['type']==1){
        return '<font color=red>挂机版</font>';
    }elseif($res['type']==2){
        return '<font color=red>云端版</font>';
    }else{
        return '<font color=red>本地版</font>';
    }
}

function type_yun($res)
{
    if($res['hook_type']==0){
        return '免挂';
    }elseif($res['hook_type']==1){
        return '挂机';
    }else{
        return '云端';
    }
}

function WxMoney($row){
    if($row['type']=='wxpay'){
        if($row['channel']=='mg_vzq' or $row['channel']=='yd_vzq'){
            return '<b>¥ '.$row['money'].'</b>';
        }else{
            return '不支持此功能';
        }
    }else{
        return '<b>¥ '.$row['money'].'</b>';
    }
}

部分截图:

1. 本文由八九资源网整理自网络,如有侵权请联系删除!邮箱:3951157@qq.com
2. 本站所发布的文章以及附件仅限用于学习和研究目的!
3. 不得将用于商业或者非法用途;否则由此产生的法律后果,本站概不负责!
4. 部分资源无法验证资源的完整性和可用性,请自行斟酌!