lvhao 1 miesiąc temu
rodzic
commit
9ccdc70daf
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      core/CoreApp/models/Model_api.php

+ 1 - 1
core/CoreApp/models/Model_api.php

@@ -848,7 +848,7 @@ function __construct(){
 		}else{
 		}else{
 			$post['orderinfo'] = $shop['id'].$v['order_id'];//订单号
 			$post['orderinfo'] = $shop['id'].$v['order_id'];//订单号
 		}
 		}
-		$post['insurance'] = $v['insurance'];//运输保险费用
+		$post['insurance'] = isset($v['insurance'])?$v['insurance']:0;//运输保险费用
 		$post['baddress'] = $v['billing_address'];
 		$post['baddress'] = $v['billing_address'];
 		$post['saddress'] = $v['shipping_address'];
 		$post['saddress'] = $v['shipping_address'];
 		$post['country'] = $country;//此国家的ID
 		$post['country'] = $country;//此国家的ID