|
@@ -3786,13 +3786,15 @@ class common {
|
|
|
$_contact_type = common::check_input($_POST['contact_type'][$key]);
|
|
$_contact_type = common::check_input($_POST['contact_type'][$key]);
|
|
|
$_create_user = common::check_input($_POST['create_user'][$key]);
|
|
$_create_user = common::check_input($_POST['create_user'][$key]);
|
|
|
|
|
|
|
|
- $uniqueAC =array();
|
|
|
|
|
if ($_contact_type == "Add"){
|
|
if ($_contact_type == "Add"){
|
|
|
|
|
+ $uniqueAC =array();
|
|
|
foreach($consignee_id as $ck => $_consignee_id){
|
|
foreach($consignee_id as $ck => $_consignee_id){
|
|
|
$_add_create_user = "Online_D_Address";
|
|
$_add_create_user = "Online_D_Address";
|
|
|
- if(is_array($_consignee_id,$uniqueAC)){
|
|
|
|
|
|
|
+ if(utils::in_array($_consignee_id,$uniqueAC)){
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
|
|
+ $uniqueAC[] = $_consignee_id;
|
|
|
|
|
+
|
|
|
$_sync_key = common::uuid();
|
|
$_sync_key = common::uuid();
|
|
|
$_from_station = "";
|
|
$_from_station = "";
|
|
|
$addressSql .= "INSERT INTO public.contacts_address_online(
|
|
$addressSql .= "INSERT INTO public.contacts_address_online(
|
|
@@ -3891,7 +3893,12 @@ class common {
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ $uniqueAC =array();
|
|
|
foreach($address_country as $ck => $_country){
|
|
foreach($address_country as $ck => $_country){
|
|
|
|
|
+ if(utils::in_array($_country,$uniqueAC)){
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
|
|
+ $uniqueAC[] = $_country;
|
|
|
//如果需要新加的时候 用户固定名称,用作标记 //contact_person,contact_number '$_contact_person','$_contact_number'
|
|
//如果需要新加的时候 用户固定名称,用作标记 //contact_person,contact_number '$_contact_person','$_contact_number'
|
|
|
$_add_create_user = "Online_D_Address";
|
|
$_add_create_user = "Online_D_Address";
|
|
|
if ($_contact_type == "Add"){
|
|
if ($_contact_type == "Add"){
|