Browse Source

提示框错误修复

tags/6.2.8
tianya 10 months ago
parent
commit
8b8a7939da
2 changed files with 8 additions and 4 deletions
  1. +1
    -1
      src/apps/view.php
  2. +7
    -3
      src/user/inc/inc_pwd_functions.php

+ 1
- 1
src/apps/view.php View File

@@ -87,6 +87,6 @@ if ($needMoney > 0 || $needRank > 1) {
$arc->Display();
if (DEBUG_LEVEL === TRUE) {
$queryTime = ExecTime() - $t1;
echo "<div style='position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;width:auto;font-size:14px;color:#721c24;background:#f8d7da;border-color:#f5c6cb;border:1px solid transparent;border-radius:.5rem'>页面加载总消耗时间:{$queryTime}</div>\r\n";
echo DedeAlert("页面加载总消耗时间:{$queryTime}", ALERT_DANGER);
}
?>

+ 7
- 3
src/user/inc/inc_pwd_functions.php View File

@@ -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;
}
}
/**
* 查询是否发送过验证码


Loading…
Cancel
Save