diff --git a/platformapi/ebaiapi/im.go b/platformapi/ebaiapi/im.go index df586034..1ddac9d8 100644 --- a/platformapi/ebaiapi/im.go +++ b/platformapi/ebaiapi/im.go @@ -24,6 +24,12 @@ const ( ImStatusOpen = 1 //开启 ImStatusClose = -1 //关闭 + //10(用户)、20(骑手)、30(商家)、32(连锁账号登录)、95(系统) + SenderTypeUser = "10" + SenderTypeRider = "20" + SenderTypeBusiness = "30" + SenderTypeChainedAccountLogin = "32" + SenderTypeSystem = "95" ) // BusinessSendMsgReq im发送消息 diff --git a/platformapi/mtwmapi/im_test.go b/platformapi/mtwmapi/im_test.go index a679ca93..3fd7dfc3 100644 --- a/platformapi/mtwmapi/im_test.go +++ b/platformapi/mtwmapi/im_test.go @@ -189,8 +189,12 @@ func TestNew2(t *testing.T) { //fmt.Println(reflect.TypeOf(file3)) //fmt.Println(reflect.TypeOf(file2)) - var n = 0 - fmt.Println(n) - fmt.Println(reflect.TypeOf(n)) + str := "20235760123" + + fmt.Println(str[:2]) + + //var n = 0 + //fmt.Println(n) + //fmt.Println(reflect.TypeOf(n)) }