From 8b8a7939dab67f5ebdc39774260f216fbb704ba9 Mon Sep 17 00:00:00 2001 From: tianya Date: Wed, 31 May 2023 22:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=A1=86=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/view.php | 2 +- src/user/inc/inc_pwd_functions.php | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/apps/view.php b/src/apps/view.php index 5a2384fe..93177d6c 100755 --- a/src/apps/view.php +++ b/src/apps/view.php @@ -87,6 +87,6 @@ if ($needMoney > 0 || $needRank > 1) { $arc->Display(); if (DEBUG_LEVEL === TRUE) { $queryTime = ExecTime() - $t1; - echo "
页面加载总消耗时间:{$queryTime}
\r\n"; + echo DedeAlert("页面加载总消耗时间:{$queryTime}", ALERT_DANGER); } ?> \ No newline at end of file diff --git a/src/user/inc/inc_pwd_functions.php b/src/user/inc/inc_pwd_functions.php index 6c5b2dfb..8465f10f 100755 --- a/src/user/inc/inc_pwd_functions.php +++ b/src/user/inc/inc_pwd_functions.php @@ -111,15 +111,19 @@ function newmail($mid, $userid, $mailto, $type, $send) * * @param string $mail 邮件 * @param string $userid 会员id - * @return string + * @return mixed */ function member($mail, $userid) { global $db; $sql = "SELECT mid,email,safequestion FROM `#@__member` WHERE email='$mail' AND userid = '$userid'"; $row = $db->GetOne($sql); - if (!is_array($row)) return ShowMsg("会员id输入错误", "-1"); - else return $row; + if (!is_array($row)) { + ShowMsg("会员id输入错误", "-1"); + exit; + } else { + return $row; + } } /** * 查询是否发送过验证码