|
@@ -79,7 +79,8 @@ func handleZhiosExpressOrderFail(msg []byte) error { |
|
|
if ord.Status == "已退回" { |
|
|
if ord.Status == "已退回" { |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
base := CommBase(mid) |
|
|
|
|
|
|
|
|
ordExpressPlatform := utils.IntToStr(ord.ExpressPlatform) |
|
|
|
|
|
base := CommBase(mid, ordExpressPlatform) |
|
|
if canalMsg.IsFail != "1" { //查下订单详情 |
|
|
if canalMsg.IsFail != "1" { //查下订单详情 |
|
|
param := map[string]interface{}{ |
|
|
param := map[string]interface{}{ |
|
|
"clientOrderNo": canalMsg.Oid, |
|
|
"clientOrderNo": canalMsg.Oid, |
|
@@ -173,11 +174,24 @@ func AppUserListPuid(mid string) string { |
|
|
if appList != nil && appList.Puid > 0 { |
|
|
if appList != nil && appList.Puid > 0 { |
|
|
uid = utils.IntToStr(appList.Puid) |
|
|
uid = utils.IntToStr(appList.Puid) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return uid |
|
|
|
|
|
} |
|
|
|
|
|
func AppUserListPuidNew(mid string, ordExpressPlatform string) string { |
|
|
|
|
|
appList := offical.GetUserAppList(mid) |
|
|
|
|
|
uid := "0" |
|
|
|
|
|
if appList != nil && appList.Puid > 0 { |
|
|
|
|
|
uid = utils.IntToStr(appList.Puid) |
|
|
|
|
|
} |
|
|
|
|
|
expressPlatform := offical.MasterListCfgGetOneData(uid, "express_platform_type") |
|
|
|
|
|
if expressPlatform == "1" || ordExpressPlatform == "1" { //如果是1 走智莺官方 |
|
|
|
|
|
uid = "0" |
|
|
|
|
|
} |
|
|
return uid |
|
|
return uid |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func CommBase(mid string) map[string]string { |
|
|
|
|
|
puid := AppUserListPuid(mid) |
|
|
|
|
|
|
|
|
func CommBase(mid, ordExpressPlatform string) map[string]string { |
|
|
|
|
|
puid := AppUserListPuidNew(mid, ordExpressPlatform) |
|
|
key := puid + "_official_express_info" |
|
|
key := puid + "_official_express_info" |
|
|
stringStr, err := cache.GetString(key) |
|
|
stringStr, err := cache.GetString(key) |
|
|
stringMap := make(map[string]string) |
|
|
stringMap := make(map[string]string) |
|
|