|
@@ -81,14 +81,14 @@ func GetSubScribeInfo(session *httpsession.Session, mg mongodb.MongodbSim, types
|
|
|
return object
|
|
|
}
|
|
|
|
|
|
-//商机管理订阅设置
|
|
|
+// 商机管理订阅设置
|
|
|
func EntnicheSub(entUserId, entId int64, types int64, mg mongodb.MongodbSim) *map[string]interface{} {
|
|
|
object := &map[string]interface{}{}
|
|
|
entnicheJy := &map[string]interface{}{}
|
|
|
res, _ := mg.FindOne("entniche_rule", map[string]interface{}{
|
|
|
"i_userid": entUserId,
|
|
|
"i_entid": entId,
|
|
|
- "types": types,
|
|
|
+ "i_type": types,
|
|
|
})
|
|
|
if types == 2 {
|
|
|
if (*res)["o_entniche"] != nil {
|
|
@@ -115,7 +115,7 @@ func EntnicheSub(entUserId, entId int64, types int64, mg mongodb.MongodbSim) *ma
|
|
|
return entnicheJy
|
|
|
}
|
|
|
|
|
|
-//格式化数据 大会员/超级订阅/商机管理 结构一致 关键词格式化
|
|
|
+// 格式化数据 大会员/超级订阅/商机管理 结构一致 关键词格式化
|
|
|
func format(data *map[string]interface{}) *map[string]interface{} {
|
|
|
if data == nil {
|
|
|
return nil
|