rabin 7 months ago
parent
commit
137da36d2f
1 changed files with 26 additions and 0 deletions
  1. 26 0
      yspay/Cash.php

+ 26 - 0
yspay/Cash.php

@@ -187,6 +187,32 @@ class Cash
     	return false;
     }
 
+    # 重新分账
+    public function fz_api()
+    {
+    	$where = array();
+    	$where['status'] = 2;
+    	$where['fenzhang_status'] = 2;
+    	$order_num = Dever::input('order_num');
+    	if ($order_num) {
+    		$where['order_num'] = $order_num;
+    	}
+    	$data = Dever::db('pay/yspay_cash')->select($where);
+    	if ($data) {
+    		$test = Dever::input('test');
+    		if ($test == 1) {
+    			print_r($data);die;
+    		}
+    		foreach ($data as $info)
+    		{
+    			if ($info['fz_cash'] && $info['fz_cash'] > 0 && $info['status'] == 2 && $info['fenzhang_status'] == 2) {
+					$this->fenzhang_act($info);
+				}
+    		}
+    	}
+    	return 'ok';
+    }
+
     /*
     private function tixian_act($info)
     {