lvhao 8 ساعت پیش
والد
کامیت
9ac63ca64d
1فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 4
      core/CoreApp/controllers/Transfer.php

+ 3 - 4
core/CoreApp/controllers/Transfer.php

@@ -979,8 +979,8 @@ class Transfer extends Start_Controller {
 		$this->data['vip'] = $user['vip'];
 		$transfer_ids = array_column($transfer,'id');
 		$transfer_str = implode(",",$transfer_ids);
-		$this->data['cz_1_num'] = $this->systemtransfer_cr->find_count("orver_flag = 1 and is_over = 0 and time > ".(time()-3600*24*14)  ." and lx in (".$transfer_str.")");
-		$this->data['cz_2_num'] = $this->systemtransfer_cr->find_count("orver_flag = 2 and is_over = 0 and time > ".(time()-3600*24*14)  ." and lx in (".$transfer_str.")");
+		$this->data['cz_1_num'] = $this->systemtransfer_cr->find_count("orver_flag = 1 and ycrk_type = 0 and is_over = 0 and time > ".(time()-3600*24*14)  ." and lx in (".$transfer_str.")");
+		$this->data['cz_2_num'] = $this->systemtransfer_cr->find_count("orver_flag = 2 and ycrk_type = 0  and is_over = 0 and time > ".(time()-3600*24*14)  ." and lx in (".$transfer_str.")");
 		//$jiaji_num = 0;
 	    
 	    // $jiaji_num = $this->systemtransfer->find_count(" is_jiaji = 2 and time > ".(time()-3600*24*7)." and rk not like '%|11|%'" );
@@ -993,8 +993,7 @@ class Transfer extends Start_Controller {
 		    $this->data['jiaji_num'] = -1;
 		}else{
 		    $transfer_str = implode(",",$transfer_ids);
-    		$sql_r = $this->db->query("select s.id,s.is_jiaji,s.rk,c.is_over,c.time,c.lx,c.id from crowd_systemtransfer as s inner join crowd_systemtransfer_cr as c   on c.fid = s.id and c.is_over = 0 and c.time > ".(time()-3600*24*14)  ." and c.lx in (".$transfer_str.") where s.is_jiaji = 2 and s.rk not like '%|11|%'");
-    	    // print_r("select s.id,s.is_jiaji,s.rk,c.is_over,c.time,c.lx,c.id from crowd_systemtransfer as s inner join crowd_systemtransfer_cr as c   on c.fid = s.id and c.is_over = 0 and c.time > ".(time()-3600*24*7)  ." and c.lx in (".$transfer_str.") where s.is_jiaji = 2 and s.rk not like '%|11|%'");
+    		$sql_r = $this->db->query("select s.id,s.is_jiaji,s.rk,c.is_over,c.time,c.lx,c.id from crowd_systemtransfer as s inner join crowd_systemtransfer_cr as c   on c.fid = s.id and c.is_over = 0 and c.time > ".(time()-3600*24*14)  ." and c.lx in (".$transfer_str.") where s.is_jiaji = 2 and s.ycrk_type = 0 and s.rk not like '%|11|%'");
     		
     		$tmp_list= $sql_r->result_array();
     		$this->data['jiaji_num'] = count($tmp_list);