|
|
@@ -85,7 +85,7 @@ func TestLogicExtServer_SendMessage(t *testing.T) { |
|
|
|
func TestLogicExtServer_protoUnmarshal(t *testing.T) { |
|
|
|
db.InitMysql(config.MySQL) |
|
|
|
var msg model.Message |
|
|
|
if err := db.DB.Table("message_000").Where("`id` = 192914").First(&msg).Error; err != nil { |
|
|
|
if err := db.DB.Table("message_000").Where("`id` = 10912").First(&msg).Error; err != nil { |
|
|
|
if err == gorm.ErrRecordNotFound { |
|
|
|
fmt.Println(err) |
|
|
|
return |
|
|
@@ -93,7 +93,7 @@ func TestLogicExtServer_protoUnmarshal(t *testing.T) { |
|
|
|
} |
|
|
|
|
|
|
|
var temp pb.Command |
|
|
|
var temp1 pb.AddGroupMembersPush |
|
|
|
var temp1 pb.UpdateGroupPush |
|
|
|
err := proto.Unmarshal(msg.Content, &temp) |
|
|
|
if err != nil { |
|
|
|
fmt.Println(err) |
|
|
|