mirror of
https://gitee.com/ShopeX/OMS
synced 2026-08-01 10:26:04 +08:00
[TBID:SCRUM-7440] fix:优化邮编异常拼接hash导致的客户保存失败
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user