|
@@ -1345,9 +1345,12 @@ func GetSenderName(in *messagecenter.GetSenderNameReq) string {
|
|
|
var name string
|
|
|
switch in.SType {
|
|
|
case 1: //客服
|
|
|
- data := IC.BaseMysql.FindOne("socialize_tenant_seats", map[string]interface{}{"customer_service_id": in.Id}, "name", "")
|
|
|
- if data != nil && len(*data) > 0 {
|
|
|
- name = fmt.Sprintf("%s(客服)", quitl.InterfaceToStr((*data)["name"]))
|
|
|
+ data1 := IC.BaseMysql.FindOne("socialize_chat_session", map[string]interface{}{"id": in.Id}, "customer_service_id", "")
|
|
|
+ if data1 != nil && len(*data1) > 0 {
|
|
|
+ data := IC.BaseMysql.FindOne("socialize_tenant_seats", map[string]interface{}{"customer_service_id": quitl.IntAll((*data1)["customer_service_id"])}, "name", "")
|
|
|
+ if data != nil && len(*data) > 0 {
|
|
|
+ name = fmt.Sprintf("%s(客服)", quitl.InterfaceToStr((*data)["name"]))
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
case 2: //用户
|