houjie 4 years ago
parent
commit
2d15c03d1c
1 changed files with 3 additions and 4 deletions
  1. 3 4
      小程序使用protobuf.md

+ 3 - 4
小程序使用protobuf.md

@@ -1,19 +1,18 @@
 ### 前言
 小程序http请求响应的protobuf的方法已经封装好了,下面是使用方式
 
-冲突测试325435524地方干部v地方干部v
+
 
 ### 第一步:重新生成proto的js文件
 
 举一个栗子:
 后端提供了一个新的接口,它的protobuf请求和返回的message是:
-冲突测试124123412341234
-111111111
+
 ```protobuf
 //登录请求 1005
 message login_req
 {
-    string  phone1            = 1;
+    string  phone            = 1;
     uint32 type             = 2;//登录类型,1:密码登录,2:验证码登录
     string verifyInfo      = 3;//1密码,2验证码
     int64  time				= 4;//纳秒,游客登陆用的