|
@@ -2,6 +2,7 @@ package service
|
|
|
|
|
|
import (
|
|
|
. "bp.jydev.jianyu360.cn/CRM/networkManage/api/common"
|
|
|
+ "encoding/json"
|
|
|
"github.com/gogf/gf/v2/util/gconv"
|
|
|
"log"
|
|
|
)
|
|
@@ -31,13 +32,14 @@ func (t *InitInfoService) UpdateInitInfo(company, business string) bool {
|
|
|
}, false, false)
|
|
|
if userInfo.Ent.EntRoleId == 1 {
|
|
|
//企业管理员
|
|
|
+ info, _ := json.Marshal(map[string]interface{}{
|
|
|
+ "company": company,
|
|
|
+ "business": business,
|
|
|
+ })
|
|
|
fool = JianyuMysql.Update("entniche_info", map[string]interface{}{
|
|
|
"id": t.EntId,
|
|
|
}, map[string]interface{}{
|
|
|
- "identityInfo": map[string]interface{}{
|
|
|
- "company": company,
|
|
|
- "business": business,
|
|
|
- },
|
|
|
+ "identityInfo": string(info),
|
|
|
})
|
|
|
|
|
|
}
|