jason hai 1 ano
pai
achega
b38b896a1f
Modificáronse 3 ficheiros con 4 adicións e 0 borrados
  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