Ver a proveniência

update 供应链加入商品库

three
DengBiao há 10 meses
ascendente
cometimento
a4f15e7d89
1 ficheiros alterados com 12 adições e 12 eliminações
  1. +12
    -12
      consume/supply_cloud_chain_fenxiao_new_change.go

+ 12
- 12
consume/supply_cloud_chain_fenxiao_new_change.go Ver ficheiro

@@ -91,9 +91,9 @@ func SupplyCloudChainFenxiaoNewChangeConsume(queue md.MqQueue) {
var goods model.MallGoods
goods.CloudChainGoodsId = id
goods.MerchantId = systemMerchant.Id
getV2, err := goods.GetV2(svc2.MasterDb(c))
if err != nil {
e.OutErr(c, e.ERR, err.Error())
getV2, err11 := goods.GetV2(svc2.MasterDb(c))
if err11 != nil {
fmt.Println("!!!!!!", err11.Error())
return
}
if getV2 {
@@ -113,25 +113,25 @@ func SupplyCloudChainFenxiaoNewChangeConsume(queue md.MqQueue) {
req.Base.MerchantId = systemMerchant.Id
result, ok := goodsFrom1688["result"].(map[string]interface{})
if !ok {
e.OutErr(c, e.ERR, logx.Error("错误的数据").Error())
logx.Error("错误的数据")
return
}
if message, ok := result["message"]; ok {
e.OutErr(c, e.ERR, message)
fmt.Println("!!!!!", message)
return
}
resultList, ok := result["result"].([]interface{})
if !ok {
e.OutErr(c, e.ERR, logx.Error("错误的数据2").Error())
fmt.Println("!!!!!!错误的数据2!!!!!!!!!")
return
}
if len(resultList) == 0 {
e.OutErr(c, e.ERR, logx.Error("错误的数据3").Error())
fmt.Println("!!!!!!错误的数据3!!!!!!!!!")
return
}
cloudChainGoods, ok := resultList[0].(map[string]interface{})
if !ok {
e.OutErr(c, e.ERR, logx.Error("错误的数据4").Error())
fmt.Println("!!!!!!错误的数据4!!!!!!!!!")
return
}
utils.FilePutContents("cloudChainGoods", utils.SerializeStr(cloudChainGoods))
@@ -140,10 +140,10 @@ func SupplyCloudChainFenxiaoNewChangeConsume(queue md.MqQueue) {
switch err.(type) {
case e.E:
err1 := err.(e.E)
e.OutErr(c, err1.Code, err1.Error())
fmt.Println("!!!!!!", err1.Error())
return
default:
e.OutErr(c, e.ERR, err.Error())
fmt.Println("!!!!!!", err.Error())
return
}
}
@@ -153,10 +153,10 @@ func SupplyCloudChainFenxiaoNewChangeConsume(queue md.MqQueue) {
switch err1.(type) {
case e.E:
err1 := err1.(e.E)
e.OutErr(c, err1.Code, err1.Error())
fmt.Println("!!!!!!", err1.Error())
return
default:
e.OutErr(c, e.ERR, err1.Error())
fmt.Println("!!!!!!", err.Error())
return
}
}


Carregando…
Cancelar
Guardar