原因:
在protobuf 的string字段中存在中文,序列化的時候會出現截斷數據,string這個類型帶有檢查功能
解決方法:
把protobuf中存在中文的string字段類型 改為bytes
string的序列化函數多以下代碼
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strdeptname().data(), this->strdeptname().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strdeptname");