Pārlūkot izejas kodu

交易单号为空 不允许校验的

lvhao 3 mēneši atpakaļ
vecāks
revīzija
fb161533b0

+ 3 - 3
core/CoreApp/controllers/Customer.php

@@ -1078,9 +1078,9 @@ class Customer extends Start_Controller {
 			{
 			    $post['orderinfo'] = $sp['id'].date('ymdHis',time()).rand(0,1);//订单号
 			}
-			if(empty($post['paypal'])){
-				echo json_encode(array('msg'=>'交易号不可为空!','success'=>false));exit;
-			}
+			// if(empty($post['paypal'])){
+			// 	echo json_encode(array('msg'=>'交易号不可为空!','success'=>false));exit;
+			// }
 			if($post['paypal'] != '')
 			{
 			    $pp = $this->fullorder->get_paypal($post['paypal']);	

+ 8 - 0
core/CoreApp/controllers/Fullorder.php

@@ -1037,6 +1037,14 @@ class Fullorder extends Start_Controller {
 				if(empty($post['paypal'])){
 					echo json_encode(array('msg'=>'交易号不可为空!','success'=>false));exit;
 				}
+			}else{
+				$tmp_info = $this->fullorder->read($post['id']);
+				if(empty($tmp_info)){
+					echo json_encode(array('msg'=>'订单信息异常','success'=>false));exit;
+				}
+				if(empty($tmp_info['paypal'])){
+					echo json_encode(array('msg'=>'交易号不可为空!','success'=>false));exit;
+				}	
 			}
 
 			// if($post['express'] == 42 && $post['sbpm'] != 'Human Hair Wigs' && $post['sbpm'] != 'Human Hair Goods')//$post['express'] == 3 ||