This commit is contained in:
邹宗楠
2022-11-16 15:08:28 +08:00
parent 6c021676df
commit 09773496a3
2 changed files with 10 additions and 3 deletions

View File

@@ -153,7 +153,7 @@ func (c *LogisticsController) LogisticsQuery() {
// 查询订单的运单是否存在
data, err := dao.GetWayBillsByWayBillId(dao.GetDB(), param.TrackNo)
if err != nil {
if err != nil || len(data) == 0 {
globals.SugarLogger.Debugf("根据单号查询运单数据错误:%s", err)
c.Data["json"] = LogisticsQueryRest{
Result: false,