Browse Source

修正投稿限制的错误

pull/54/head
tianya 1 month ago
parent
commit
5345f2dc6a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/system/memberlogin.class.php

+ 2
- 1
src/system/memberlogin.class.php View File

@@ -376,7 +376,8 @@ class MemberLogin
*/
function IsSendLimited()
{
$arr = $this->dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__arctiny` WHERE mid='{$this->M_ID}'");
$ttime = strtotime("today");
$arr = $this->dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__arctiny` WHERE mid='{$this->M_ID}' AND senddate >= $ttime");
if (is_array($arr)) {
if ($this->M_SendMax < 0) {
return false;


Loading…
Cancel
Save