lvhao 1 月之前
父节点
当前提交
9ccdc70daf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/CoreApp/models/Model_api.php

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

@@ -848,7 +848,7 @@ function __construct(){
 		}else{
 			$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['saddress'] = $v['shipping_address'];
 		$post['country'] = $country;//此国家的ID