[TBID:SCRUM-7440] fix:优化邮编异常拼接hash导致的客户保存失败

This commit is contained in:
马晓辰
2026-07-23 19:38:26 +08:00
committed by chenping
parent 677d749c0a
commit b40887c9c3
2 changed files with 11 additions and 1 deletions

View File

@@ -38,10 +38,15 @@ class erpapi_shop_matrix_meituan4bulkpurchasing_response_order extends erpapi_sh
$hashCode = kernel::single('ome_security_hash')->get_code();
if ($this->_ordersdf['extend_field']['oaid']) {
foreach ($this->_ordersdf['consignee'] as $key => $value) {
// 邮编和邮箱不是 OMS 隐私索引字段,不能拼接 oaid@hash。
if (in_array($key, ['email', 'zip', 'ship_zip'])) {
continue;
}
if(strpos($value, '*') !== false) {
$this->_ordersdf['consignee'][$key] .= '>>' . $this->_ordersdf['extend_field']['oaid'] . $hashCode;
}
}
}
}
}
}

View File

@@ -50,6 +50,11 @@ class erpapi_shop_matrix_taobao_response_qianniu extends erpapi_shop_response_qi
// 加密字段处理
$hashCode = kernel::single('ome_security_hash')->get_code();
foreach ($this->_qnordersdf['modifiedAddress'] as $key => $value) {
// postCode 是邮编,不属于 OMS 隐私索引字段。
if ($key == 'postCode') {
continue;
}
if(strpos($value, '*') !== false) {
$this->_qnordersdf['modifiedAddress'][$key] .= '>>' . $this->_qnordersdf['oaid'] . $hashCode;
}