1,文件地址:app/common/controller/Order.php
方法名:get_express
代码:
修改次代码
if (!str_contains($orderInfo['delivery_id'], ':') && $orderInfo['user_phone'] && ($orderInfo['delivery_code'] == 'shunfengkuaiyun' || $orderInfo['delivery_code'] == 'zhongtong')) {
$delivery_id = $orderInfo['delivery_id'] . ':' . substr($orderInfo['user_phone'], -4);
}
如下图
2,文件地址:app/controller/api/v1/order/StoreOrder.php
方法名 express
if (!str_contains($orderInfo['delivery_id'], ':')
&& $orderInfo['user_phone']
&& ($orderInfo['delivery_code'] == 'shunfengkuaiyun' || $orderInfo['delivery_code'] == 'zhongtong'
|| ($type == 'refund' && ($order['express_name'] ?? '') == '顺丰快运'))) {
$delivery_id = $orderInfo['delivery_id'] . ':' . substr($orderInfo['user_phone'], -4);
}
如下图