Browse Source

tt的usps的32位地址禁用

lvhao 3 months ago
parent
commit
7120bd6959
1 changed files with 5 additions and 4 deletions
  1. 5 4
      core/CoreApp/controllers/Fullordertt.php

+ 5 - 4
core/CoreApp/controllers/Fullordertt.php

@@ -1087,10 +1087,11 @@ class Fullordertt extends Start_Controller {
 			{
 				echo json_encode(array('msg'=>'此快递方地址不可超出'.$express['addresssize'].'个字符','success'=>false));exit;
 			}
-			if(strlen($post['address']) > 32 && ($post['express'] == 2 || $post['express'] == 16))
-			{
-				echo json_encode(array('msg'=>'此快递方地址不可超出32个字符','success'=>false));exit;
-			}
+			// 根据禁用处理32长度
+			// if(strlen($post['address']) > 32 && ($post['express'] == 2 || $post['express'] == 16))
+			// {
+			// 	echo json_encode(array('msg'=>'此快递方地址不可超出32个字符','success'=>false));exit;
+			// }
 			if(strlen($post['address']) < 5)
 			{
 				echo json_encode(array('msg'=>'地址不可留空!','success'=>false));exit;