|
@@ -6,7 +6,6 @@ import (
|
|
|
|
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
|
|
|
|
- cf "jyInfo/api/common"
|
|
|
|
"jyInfo/api/internal/svc"
|
|
"jyInfo/api/internal/svc"
|
|
"jyInfo/api/internal/types"
|
|
"jyInfo/api/internal/types"
|
|
|
|
|
|
@@ -39,22 +38,9 @@ func (l *SupplyInfoDetailLogic) SupplyInfoDetail(req *types.SupplyInfoDetailReq)
|
|
Data: nil,
|
|
Data: nil,
|
|
}, nil
|
|
}, nil
|
|
}
|
|
}
|
|
- var attchMap map[string]interface{}
|
|
|
|
- if supply.Data != nil && supply.Data.Attach != "" {
|
|
|
|
- attchMap = common.StringToMap(supply.Data.Attach)
|
|
|
|
- for _, v := range attchMap {
|
|
|
|
- attch := common.ObjToMap(v)
|
|
|
|
- if attch != nil {
|
|
|
|
- (*attch)["ossUrl"] = cf.C.OssUrl
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
return &types.CommonRes{
|
|
return &types.CommonRes{
|
|
Err_code: common.IntAll(supply.ErrCode),
|
|
Err_code: common.IntAll(supply.ErrCode),
|
|
Err_msg: supply.ErrMsg,
|
|
Err_msg: supply.ErrMsg,
|
|
- Data: map[string]interface{}{
|
|
|
|
- "info": supply.Data,
|
|
|
|
- "attchs": attchMap,
|
|
|
|
- },
|
|
|
|
|
|
+ Data: supply.Data,
|
|
}, nil
|
|
}, nil
|
|
}
|
|
}
|