Browse Source

在fullorder。php 和customer的客户下单那 监管不让paypal为空的直接返回错误

lvhao 3 months ago
parent
commit
2ce57957ce
1 changed files with 7 additions and 0 deletions
  1. 7 0
      core/CoreApp/controllers/Fullorder.php

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

@@ -1032,6 +1032,13 @@ class Fullorder extends Start_Controller {
 			if($lo_ret['code'] != 1){
 				echo json_encode(array('msg'=>$lo_ret['msg'],'success'=>false));exit;
 			}
+			//检测PayPal有但是为空的情况
+			if(isset($post['paypal'])){
+				if(empty($post['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 || 
 			// {
 			// 	echo json_encode(array('msg'=>'此快递方式必须选择Human Hair Wigs/Human Hair Goods!','success'=>false));exit;