Browse Source

修改支付

shaoguo 1 year ago
parent
commit
e72684739f
1 changed files with 11 additions and 10 deletions
  1. 11 10
      Modules/Home/Controller/CarController.class.php

+ 11 - 10
Modules/Home/Controller/CarController.class.php

@@ -5064,10 +5064,10 @@ class CarController extends CommonController
 			$wxfydata['sub_appid'] = $appid;
 			$wxfydata['sub_appid'] = $appid;
 			
 			
 			$resfult = $wxfy->createOrder($wxfydata);
 			$resfult = $wxfy->createOrder($wxfydata);
-			$fy_res = json_decode($resfult, 1);
+//			$fy_res = json_decode($resfult, 1);
 			
 			
 		
 		
-			if ($fy_res['result_code'] != '000000' && !$fy_res['result_msg'] != 'SUCCESS') {
+			if (false) {
 				$json = array();
 				$json = array();
 
 
 				$json['code'] = 2;
 				$json['code'] = 2;
@@ -5076,18 +5076,19 @@ class CarController extends CommonController
 				die();
 				die();
 			}
 			}
 
 
-			$prepay_id =(string)$fy_res['session_id'];
+		//	$prepay_id =(string)$fy_res['session_id'];
 
 
 			$data = array();
 			$data = array();
 			$data['code'] = 0;
 			$data['code'] = 0;
-			$data['appid'] = $fy_res['sdk_appid'];
-			$data['timeStamp'] = $fy_res['sdk_timestamp'];
-			$data['nonceStr'] = $fy_res['sdk_noncestr'];
-			$data['signType'] = $fy_res['sdk_signtype'];
-			$data['package'] = 'prepay_id=' .$prepay_id;
-			$data['paySign'] = $fy_res['sdk_paysign'];
+//			$data['appid'] = $fy_res['sdk_appid'];
+//			$data['timeStamp'] = $fy_res['sdk_timestamp'];
+//			$data['nonceStr'] = $fy_res['sdk_noncestr'];
+//			$data['signType'] = $fy_res['sdk_signtype'];
+//			$data['package'] = 'prepay_id=' .$prepay_id;
+//			$data['paySign'] = $fy_res['sdk_paysign'];
 			$data['out_trade_no'] = $out_trade_no;
 			$data['out_trade_no'] = $out_trade_no;
-			M('lionfish_comshop_member_charge_flow')->where(array('id' => $order_id))->save(array('formid' => $prepay_id));
+            $data['xml'] = $resfult;
+//			M('lionfish_comshop_member_charge_flow')->where(array('id' => $order_id))->save(array('formid' => $prepay_id));
 			$data['redirect_url'] = '../dan/me';
 			$data['redirect_url'] = '../dan/me';
 			echo json_encode($data);
 			echo json_encode($data);
 			die();
 			die();