瀏覽代碼

add respData

jason 1 年之前
父節點
當前提交
b38b896a1f
共有 3 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      impl/vehicle/a002.go
  2. 1 0
      impl/vehicle/v001.go
  3. 2 0
      impl/vehicle/v002.go

+ 1 - 0
impl/vehicle/a002.go

@@ -27,6 +27,7 @@ func A002(ctx context.Context, req *apis.CommonReq, reply *apis.CommonReply) err
 
 	err = adm.A04(ctx, "", "", vin, respData, &reply.LReq, providerMap, consts.RANGEONE)
 	if err == nil {
+		reply.Data = respData
 		return nil
 	} else {
 		return errors.NoRecord

+ 1 - 0
impl/vehicle/v001.go

@@ -28,6 +28,7 @@ func V001(ctx context.Context, req *apis.CommonReq, reply *apis.CommonReply) err
 	isMatch, err := adm.V01(ctx, plateNo, plateType, owner, &reply.LReq, providerMap, consts.RANGEONE)
 	if err == nil {
 		respData["is_match"] = isMatch
+		reply.Data = respData
 		return nil
 	} else {
 		return errors.NoRecord

+ 2 - 0
impl/vehicle/v002.go

@@ -28,12 +28,14 @@ func V002(ctx context.Context, req *apis.CommonReq, reply *apis.CommonReply) err
 	isMatch, err := adm.V01(ctx, plateNo, plateType, owner, &reply.LReq, providerMap, consts.RANGEONE)
 	if err == nil {
 		respData["is_match"] = isMatch
+		reply.Data = respData
 	} else {
 		return errors.NoRecord
 	}
 
 	err = adm.A04(ctx, plateNo, plateType, "", respData, &reply.LReq, providerMap, consts.RANGEONE)
 	if err == nil {
+		reply.Data = respData
 		return nil
 	} else {
 		return errors.NoRecord