diff --git a/src/admin/sys_payment.php b/src/admin/sys_payment.php
index 67545f5b..b36ec2d0 100644
--- a/src/admin/sys_payment.php
+++ b/src/admin/sys_payment.php
@@ -43,7 +43,7 @@ if ($dopost === "get_payments") {
$configItem->$kk = $ii;
}
}
- $cfg = json_encode($configItem);
+ $cfg = json_encode($configItem, JSON_UNESCAPED_UNICODE);
$upQuery = "UPDATE `#@__sys_payment` SET sortrank='$sortrank',status='$status',config='$cfg' WHERE code='$key'; ";
if (!$dsql->ExecuteNoneQuery($upQuery)) {
echo json_encode(array(
diff --git a/src/apps/return.php b/src/apps/return.php
index 46fb0f12..6973d9a1 100644
--- a/src/apps/return.php
+++ b/src/apps/return.php
@@ -56,5 +56,8 @@ if ($dopost === 'alipay') {
ShowMsg("付款错误", "javascript:;");
exit;
}
+} else {
+ ShowMsg("未知支付方式", "javascript:;");
+ exit;
}
?>
\ No newline at end of file
diff --git a/src/apps/view.php b/src/apps/view.php
index 520081ca..51d3afe9 100755
--- a/src/apps/view.php
+++ b/src/apps/view.php
@@ -55,13 +55,13 @@ if ($needMoney > 0 || $needRank > 1) {
if (!is_array($row)) {
if ($cfg_ml->M_Money == '' || $needMoney > $cfg_ml->M_Money) {
$msgtitle = "您没有权限浏览文档:{$arctitle} ";
- $moremsg = "该文档需要".$needMoney."金币才能浏览,您目前金币".$cfg_ml->M_Money."";
+ $moremsg = "该文档需要".$needMoney."金币才能浏览,您目前金币".$cfg_ml->M_Money."
前去充值";
include_once(DEDETEMPLATE.'/plus/view_msg.htm');
$arc->Close();
exit();
} else {
if ($dopost == 'buy') {
- $inquery = "INSERT INTO `#@__member_operation` (mid,oldinfo,money,mtime,buyid,product,pname) VALUES ('".$cfg_ml->M_ID."','$arctitle','$needMoney','".time()."','ARCHIVE".$aid."','archive',''); ";
+ $inquery = "INSERT INTO `#@__member_operation` (mid,oldinfo,money,mtime,buyid,product,pname,sta) VALUES ('".$cfg_ml->M_ID."','$arctitle','$needMoney','".time()."','ARCHIVE".$aid."','archive','购买内容',2); ";
if ($dsql->ExecuteNoneQuery($inquery)) {
$inquery = "UPDATE `#@__member` SET money=money-$needMoney WHERE mid='".$cfg_ml->M_ID."'";
if (!$dsql->ExecuteNoneQuery($inquery)) {
@@ -76,7 +76,7 @@ if ($needMoney > 0 || $needRank > 1) {
}
}
$msgtitle = "扣金币购买阅读";
- $moremsg = "该文档需要付费".$needMoney."金币,您目前金币".$cfg_ml->M_Money."
确认付点阅读";
+ $moremsg = "该文档需要付费".$needMoney."金币,您目前金币".$cfg_ml->M_Money."
确认付点阅读";
include_once($cfg_basedir.$cfg_templets_dir."/plus/view_msg.htm");
$arc->Close();
exit();
diff --git a/src/theme/plus/view_msg.htm b/src/theme/plus/view_msg.htm
index aabe50c2..55011f7d 100644
--- a/src/theme/plus/view_msg.htm
+++ b/src/theme/plus/view_msg.htm
@@ -14,8 +14,8 @@
错误具体提示信息: | |