bug:
TypeError: 'GetTempaccountDetailsRsp' object is not subscriptable
debug:
发现问题存在于下列语句中
pho_response = xxx
而使用pho_response的下标时报错使用不了,这是因为获取pho_response的值还没有转换,需要Protobuf序式化json,添加下列语句便把数据转换成需要的格式啦
MessageToDict(pho_response,
including_default_value_fields=True,
preserving_proto_field_name=True)['data']
想深入了解的朋友可以参考Protobuf