|
@@ -6,6 +6,7 @@ import (
|
|
|
se "app.yhyue.com/moapp/jybase/encrypt"
|
|
|
"context"
|
|
|
"log"
|
|
|
+ "regexp"
|
|
|
"strconv"
|
|
|
|
|
|
"app.yhyue.com/moapp/jyInfo/rpc/consumer/consumerinfo"
|
|
@@ -37,6 +38,11 @@ func (l *SupplyInfoDetailLogic) SupplyInfoDetail(in *consumerinfo.StatusReq) (*c
|
|
|
if in.Type == 0 {
|
|
|
data := model.Mysql.FindOne("supply_info", map[string]interface{}{"id": msgId}, "", "")
|
|
|
if *data != nil {
|
|
|
+ astr := mc.InterfaceToStr((*data)["attach"])
|
|
|
+ regfid := regexp.MustCompile(`"fid":".*?",`)
|
|
|
+ regoss := regexp.MustCompile(`"ossurl":".*?",`)
|
|
|
+ astr = regfid.ReplaceAllString(astr, "")
|
|
|
+ astr = regoss.ReplaceAllString(astr, "")
|
|
|
var info consumerinfo.SupplyInfoDetailData
|
|
|
info.Title = mc.InterfaceToStr((*data)["title"])
|
|
|
info.Detail = mc.InterfaceToStr((*data)["detail"])
|
|
@@ -49,7 +55,7 @@ func (l *SupplyInfoDetailLogic) SupplyInfoDetail(in *consumerinfo.StatusReq) (*c
|
|
|
conctact.Name = mc.InterfaceToStr((*data)["contact_person"])
|
|
|
conctact.Overt = mc.Int64All((*data)["contact_overt"])
|
|
|
info.InfoDetailContact = &conctact
|
|
|
- info.Attach = mc.InterfaceToStr((*data)["attach"])
|
|
|
+ info.Attach = astr
|
|
|
info.EntId = mc.Int64All((*data)["ent_id"])
|
|
|
info.Id = in.MsgId
|
|
|
//其他供应信息
|