浏览代码

add where limit

liuzejian 2 年之前
父节点
当前提交
3576c7e4a9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Services/Report/QappTxadqNewReport.php

+ 1 - 0
src/Services/Report/QappTxadqNewReport.php

@@ -113,6 +113,7 @@ class QappTxadqNewReport
     private static function hasReportedCompleteOrder($user) {
        return ReportUserChargeRecord::where('uid', $user->uid)
             ->where('type', 'tx_adq_new_complete_order')
+            ->where('status', 1)
             ->exists();
     }