1
This commit is contained in:
@@ -149,18 +149,20 @@ func (c *LogisticsController) LogisticsQuery() {
|
||||
Message: "运单账号不存在",
|
||||
}
|
||||
c.ServeJSON()
|
||||
return
|
||||
}
|
||||
|
||||
// 查询订单的运单是否存在
|
||||
data, err := dao.GetWayBillsByWayBillId(dao.GetDB(), param.TrackNo)
|
||||
if err != nil || len(data) == 0 {
|
||||
globals.SugarLogger.Debugf("根据单号查询运单数据错误:%s", err)
|
||||
globals.SugarLogger.Debugf("根据单号查询运单数据错误:%s,运单号 :%s", err.Error(), param.TrackNo)
|
||||
c.Data["json"] = LogisticsQueryRest{
|
||||
Result: false,
|
||||
ReturnCode: "1002",
|
||||
Message: "运单账号不存在",
|
||||
}
|
||||
c.ServeJSON()
|
||||
return
|
||||
}
|
||||
|
||||
returnParam := &LogisticsQueryRest{
|
||||
|
||||
Reference in New Issue
Block a user