rabin 9 months ago
parent
commit
0d7272c059
1 changed files with 2 additions and 2 deletions
  1. 2 2
      yspay/Cash.php

+ 2 - 2
yspay/Cash.php

@@ -92,7 +92,7 @@ class Cash
 	    					Dever::load('pay/yspay/merchant')->log($info['merchant_id'], $info['account_id'], 1, $info['hf_cash'], $name);
 	    				}
 	    				$info = Dever::db('pay/yspay_cash')->find(array('id' => $info['id'], 'clear' => true));
-	    				if ($info['fz_cash'] && $info['fz_cash'] > 0 && $info['fenzhang_status'] != 2) {
+	    				if ($info['fz_cash'] && $info['fz_cash'] > 0 && $info['status'] == 2 && $info['fenzhang_status'] != 2) {
 	    					$state = $this->fenzhang_act($info);
 		    				if ($state == 1) {
 		    					$update = array();
@@ -212,7 +212,7 @@ class Cash
     	*/
 
     	$info = Dever::db('pay/yspay_cash')->find(array('source_order_num' => $order_num, 'clear' => true));
-		if ($info['fz_cash'] && $info['fz_cash'] > 0 && $info['fenzhang_status'] != 2) {
+		if ($info['fz_cash'] && $info['fz_cash'] > 0 && $info['status'] == 2 && $info['fenzhang_status'] != 2) {
 			$state = $this->fenzhang_act($info);
 			if ($state == 1) {
 				$update = array();