京东快递信息取快递员信息
This commit is contained in:
@@ -151,8 +151,10 @@ var (
|
||||
6039390: 200,
|
||||
}
|
||||
|
||||
regexpCnameAndCmobile = regexp.MustCompile(`配送员,(.*),手机号,(.*)`)
|
||||
bagSkuMap = map[int]int{ //京西物料袋子skuid
|
||||
regexpCnameAndCmobile = regexp.MustCompile(`配送员,(.*),手机号,(.*)`)
|
||||
regexpCnameAndCmobile2 = regexp.MustCompile(`快递员:(.*),联系电话:(.*)`)
|
||||
|
||||
bagSkuMap = map[int]int{ //京西物料袋子skuid
|
||||
6039382: 6039382,
|
||||
6039383: 6039383,
|
||||
6039384: 6039384,
|
||||
@@ -1477,8 +1479,16 @@ func updateJdWayBillInfo(db *dao.DaoDB, order *model.GoodsOrder, getTrackMessage
|
||||
for _, vv := range getTrackMessagePlusByOrderResult.ResultData {
|
||||
if vv.OpeTitle == "配送员收货" {
|
||||
result := regexpCnameAndCmobile.FindAllStringSubmatch(vv.OpeRemark, -1)
|
||||
cName = result[0][1]
|
||||
cMobile = result[0][2]
|
||||
if len(result) > 0 {
|
||||
cName = result[0][1]
|
||||
cMobile = result[0][2]
|
||||
} else {
|
||||
result2 := regexpCnameAndCmobile2.FindAllStringSubmatch(vv.OpeRemark, -1)
|
||||
if len(result2) > 0 {
|
||||
cName = result[0][1]
|
||||
cMobile = result[0][2]
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user