dever 7 năm trước cách đây
mục cha
commit
b151f08f8d
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 2 1
      task/database/user_report.php
  2. 1 0
      task/src/Report.php

+ 2 - 1
task/database/user_report.php

@@ -226,6 +226,7 @@ return array
 			# 匹配的正则或函数 选填项
 			'option' => array
 			(
+				'task_id' => 'yes',
 				'uid' => 'yes',
 				'status' => 'yes',
 				'state' => 1,
@@ -241,8 +242,8 @@ return array
 			# 匹配的正则或函数 选填项
 			'option' => array
 			(
+				'task_id' => 'yes',
 				'uid' => 'yes',
-				'taskid' => 'yes',
 				'status' => array(3, '!='),
 				'state' => 1,
 			),

+ 1 - 0
task/src/Report.php

@@ -15,6 +15,7 @@ class Report extends Base
     public function all()
     {
     	$where['uid'] = $this->data['uid'];
+        $where['task_id'] = Dever::input('id');
         $data = Dever::db('task/user_report')->getAll($where);
         if ($data) {
             foreach ($data as $k => $v) {