|
@@ -83,6 +83,9 @@ func (n *network) AddOrUpdate(in *types.AddOrUpdateReq) *types.Reply {
|
|
|
if in.Type != "middleman" && in.Company_id == "" {
|
|
|
return reply
|
|
|
}
|
|
|
+ if in.Company_name == "" {
|
|
|
+ in.Company_name = "未填写"
|
|
|
+ }
|
|
|
nowFormat := NowFormat(Date_Full_Layout)
|
|
|
var saveIntroduce = func(tx *sql.Tx, cid int64, isUpdate bool) bool {
|
|
|
if in.Type != "middleman" {
|
|
@@ -347,9 +350,6 @@ func (n *network) AllProject(in *types.AllprojectReq) (reply *types.Reply) {
|
|
|
return
|
|
|
}
|
|
|
company_name := ObjToString(v["company_name"])
|
|
|
- if company_name == "" {
|
|
|
- company_name = "未填写"
|
|
|
- }
|
|
|
ntc := &networkTreeChild{
|
|
|
Id: Int64All(v["id"]),
|
|
|
CompanyName: company_name,
|
|
@@ -614,9 +614,6 @@ func (n *network) List(in *types.NetWorkListReq) *types.Reply {
|
|
|
}
|
|
|
url := ""
|
|
|
company_name, _ := v["company_name"].(string)
|
|
|
- if company_name == "" {
|
|
|
- company_name = "未填写"
|
|
|
- }
|
|
|
if qyxy_id := ObjToString(v["qyxy_id"]); qyxy_id != "" && (jump_type == "supplier" || jump_type == "adiffb") {
|
|
|
url = "/swordfish/page_big_pc/ent_portrait/" + encrypt.EncodeArticleId2ByCheck(qyxy_id)
|
|
|
} else if jump_type == "firstparty" && company_name != "" {
|