@@ -145,11 +145,15 @@ function __EditUser() | |||
else if ($dopost == 'edituser') { | |||
CheckPurview('member_Edit'); | |||
$send_max = isset($send_max)? intval($send_max) : 0; | |||
$user_money = isset($user_money)? intval($user_money) : 0; | |||
$user_money = isset($user_money)? floatval($user_money) : 0.0; | |||
$money = isset($money)? intval($money) : 0; | |||
$scores = isset($scores)? intval($scores) : 0; | |||
$rank = isset($rank)? intval($rank) : 0; | |||
$id = isset($id)? intval($id) : 0; | |||
$email = isset($email)? HtmlReplace($email,1) : ''; | |||
$uname = isset($uname)? HtmlReplace($uname,1) : ''; | |||
$spacesta = isset($spacesta)? HtmlReplace($spacesta,1) : ''; | |||
$exptime = isset($exptime)? HtmlReplace($exptime,1) : ''; | |||
if (!isset($_POST['id'])) exit('dedebiz'); | |||
$pwdsql = empty($pwd) ? '' : ",pwd='".md5($pwd)."'"; | |||
if (function_exists('password_hash')) { | |||
@@ -164,7 +168,7 @@ else if ($dopost == 'edituser') { | |||
$query = "UPDATE `#@__member` SET send_max='$send_max',email='$email',uname='$uname',sex='$sex',matt='$matt',user_money='$user_money',money='$money',scores='$scores',`rank`='$rank',spacesta='$spacesta',uptime='$uptime',exptime='$exptime'$pwdsql WHERE mid='$id' AND matt<>10 "; | |||
$rs = $dsql->ExecuteNoneQuery2($query); | |||
if ($rs == 0) { | |||
$query = "UPDATE `#@__member` SET email='$email',uname='$uname',sex='$sex',money='$money',scores='$scores',`rank`='$rank',spacesta='$spacesta',uptime='$uptime',exptime='$exptime'$pwdsql WHERE mid='$id' "; | |||
$query = "UPDATE `#@__member` SET email='$email',uname='$uname',sex='$sex',user_money='$user_money',money='$money',scores='$scores',`rank`='$rank',spacesta='$spacesta',uptime='$uptime',exptime='$exptime'$pwdsql WHERE mid='$id' "; | |||
$rs = $dsql->ExecuteNoneQuery2($query); | |||
} | |||
ShowMsg('成功修改会员资料', 'member_view.php?id='.$id); | |||
@@ -9,6 +9,7 @@ | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script src="../static/web/js/jquery.min.js"></script> | |||
<script src="../static/web/js/bootstrap.min.js"></script> | |||
<script src="./js/main.js"></script> | |||
</head> | |||
<body> | |||
<table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | |||
@@ -261,7 +262,11 @@ | |||
contentType: "application/json; charset=utf-8", | |||
dataType: "json", | |||
success: function (data) { | |||
console.log(data); | |||
if (data.code === 0) { | |||
ShowMsg("保存支付配置成功"); | |||
} else { | |||
ShowMsg("保存失败"); | |||
} | |||
} | |||
}) | |||
} | |||
@@ -270,7 +275,6 @@ | |||
$("#btnSave").click(() => { | |||
updateConfig() | |||
saveConfig(); | |||
console.log(config) | |||
}) | |||
}) | |||
</script> | |||
@@ -1,47 +0,0 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>安装支付接口</title> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
</head> | |||
<body> | |||
<table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | |||
<tr> | |||
<td bgcolor="#f5f5f5" colspan="2"><a href="sys_payment.php">支付接口设置</a> > 安装支付接口</td> | |||
</tr> | |||
<form action="sys_payment.php" method="post" enctype="multipart/form-data" name="form1"> | |||
<input type="hidden" name="pid" value="<?php echo $row['id'];?>"> | |||
<input type="hidden" name="pm" value="<?php echo $pm;?>"> | |||
<input type="hidden" name="dopost" value="config"> | |||
<tr> | |||
<td width="260">支付名称:</td> | |||
<td><input type="text" name="pay_name" id="pay_name" class="admin-textarea-xl" value="<?php echo $row['name'];?>"></td> | |||
</tr> | |||
<tr> | |||
<td>支付描述:</td> | |||
<td><textarea name="pay_desc" id="pay_desc" class="admin-textarea-xl"><?php echo $row['description'];?></textarea></td> | |||
</tr> | |||
<?php echo $reval ?> | |||
<tr> | |||
<td>手续费:</td> | |||
<td><input type="text" name="pay_fee" id="pay_fee" class="admin-input-xs" value="<?php echo $row['fee'];?>"> 元</td> | |||
</tr> | |||
<tr> | |||
<td>货到付款:</td> | |||
<td><?php echo ($row['cod']==0)? '否':'是';?></td> | |||
</tr> | |||
<tr> | |||
<td>在线支付:</td> | |||
<td><?php echo ($row['online']==0)? '否':'是';?></td> | |||
</tr> | |||
<tr> | |||
<td bgcolor="#f5f5f5" colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td> | |||
</tr> | |||
</form> | |||
</table> | |||
</body> | |||
</html> |
@@ -4086,6 +4086,13 @@ INSERT INTO `#@__sys_module` VALUES(1, '1f35620fb42d452fa2bdc1dee1690f92', '文 | |||
(4, 'acb8b88eb4a6d4bfc375c18534f9439e', '投票模块', '', '', 0, ''), | |||
(5, '572606600345b1a4bb8c810bbae434cc', '挑错管理', '', '', 0, ''); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (1, 'Wechat', '微信支付', '微信', 0, '{"AppID":"","MchID":"","APIv2Secret":""}', 0); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (2, 'Alipay', '支付宝支付', '支付宝', 1, '{"APPID":"","PrivateKey":"","CertPublicKey":"","RootCert":"AlipayRootCert","SignType":"RSA2"}', 0); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (3, 'Bank', '银行转账', '转账', 2, '{"AccountName":"泰隆商业银行上海杨浦支行","AccountNO":"31010090201000020658","Name":"上海穆云智能科技有限公司"}', 1); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (4, 'Balance', '余额支付', '余额', 3, '{}', 1); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (5, 'Cod', '货到付款', '货到付款', 4, '{}', 0); | |||
INSERT INTO `#@__plus` VALUES(1, '文件管理器', '<m:item name=''文件管理器'' link=''file_manage_main.php'' rank=''plus_文件管理器'' target=''main'' />', '', 'DedeBIZ', 1, ''), | |||
(2, '友情链接模块', '<m:item name=''友情链接'' link=''friendlink_main.php'' rank=''plus_友情链接'' target=''main'' />', '', 'DedeBIZ', 1, ''), | |||
(3, '广告管理', '<m:item name=''广告管理'' link=''ad_main.php'' rank=''plus_广告管理'' target=''main'' />', '', 'DedeBIZ', 1, ''), | |||
@@ -491,6 +491,7 @@ CREATE TABLE `#@__member` ( | |||
`checkmail` smallint(6) NOT NULL default '-1', | |||
`loginerr` tinyint NULL DEFAULT 0, | |||
`send_max` int DEFAULT '0', | |||
`user_money` decimal(10, 2) unsigned NULL default 0.00, | |||
PRIMARY KEY (`mid`), | |||
KEY `userid` (`userid`,`sex`), | |||
KEY `logintime` (`logintime`) | |||
@@ -120,9 +120,11 @@ CREATE TABLE `#@__sys_payment` ( | |||
`status` int(3) unsigned NOT NULL DEFAULT '0', | |||
PRIMARY KEY (`id`) | |||
) TYPE=MyISAM; | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (1, 'Wechat', '微信支付', '微信', 0, '{"AppID":"","AppSecret":"","MchID":"","APIV3Key":"","SerialNo":"","PrivateKey":"WechatPrivateKey"}', 0); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (2, 'Alipay', '支付宝支付', '支付宝', 1, '{"APPID":"","PrivateKey":"","AppCertPublicKey":"AlipayAppCertPublicKey","CertPublicKey":"AlipayCertPublicKey","RootCert":"AlipayRootCert","SignType":"RSA2"}', 0); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (3, 'Bank', '银行转账', '转账', 2, '{"AccountName":"","AccountNO":"","Name":""}', 0); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (4, 'Balance', '余额支付', '余额', 3, '[]', 0); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (5, 'Cod', '货到付款', '货到付款', 4, '[]', 0); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (1, 'Wechat', '微信支付', '微信', 0, '{"AppID":"","MchID":"","APIv2Secret":""}', 0); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (2, 'Alipay', '支付宝支付', '支付宝', 1, '{"APPID":"","PrivateKey":"","CertPublicKey":"","RootCert":"AlipayRootCert","SignType":"RSA2"}', 0); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (3, 'Bank', '银行转账', '转账', 2, '{"AccountName":"泰隆商业银行上海杨浦支行","AccountNO":"31010090201000020658","Name":"上海穆云智能科技有限公司"}', 1); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (4, 'Balance', '余额支付', '余额', 3, '{}', 1); | |||
INSERT INTO `#@__sys_payment`(`id`, `code`, `name`, `short_name`, `sortrank`, `config`, `status`) VALUES (5, 'Cod', '货到付款', '货到付款', 4, '{}', 0); | |||
ALTER TABLE `#@__member` ADD COLUMN `user_money` decimal(10, 2) UNSIGNED NULL DEFAULT 0.00 AFTER `send_max`; |