This commit is contained in:
luofei 2023-08-10 16:26:35 +08:00
parent 29c1757a32
commit e21c5e3ddf

View File

@ -228,7 +228,7 @@ class LogisticsLogic extends BaseLogic
$logistics = Logistics::where('id', $params['logistics_id'])->find();
if (!$logistics) return ['code'=>0, 'msg'=>'物流信息不存在'];
//判断订单是否一致
if($logistics['order_id'] !== $params['order_id'] || $logistics['order_sn'] !== $params['order_sn']) return ['code'=>0, 'msg'=>'订单信息不一致'];
if($logistics['order_id'] != $params['order_id'] || $logistics['order_sn'] != $params['order_sn']) return ['code'=>0, 'msg'=>'订单信息不一致'];
//判断物流信息状态
switch ($logistics['status']) {
case 1: