shaoguo hai 1 ano
pai
achega
e72684739f
Modificáronse 1 ficheiros con 11 adicións e 10 borrados
  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;
 			
 			$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['code'] = 2;
@@ -5076,18 +5076,19 @@ class CarController extends CommonController
 				die();
 			}
 
-			$prepay_id =(string)$fy_res['session_id'];
+		//	$prepay_id =(string)$fy_res['session_id'];
 
 			$data = array();
 			$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;
-			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';
 			echo json_encode($data);
 			die();