|
|
@@ -8,6 +8,7 @@ import (
|
|
|
"mtp20access/res/pb"
|
|
|
"regexp"
|
|
|
"strings"
|
|
|
+ "time"
|
|
|
|
|
|
"github.com/golang/protobuf/jsonpb"
|
|
|
"github.com/golang/protobuf/proto"
|
|
|
@@ -705,6 +706,9 @@ func (r *MQBodyReq) GetProtoBytes(serialNumber *uint32) (bytes *[]byte, err erro
|
|
|
err = errors.New("请求信息序列化失败")
|
|
|
return
|
|
|
}
|
|
|
+ // 按交易服务要求增加服务器时间
|
|
|
+ m.ServiceTime = new(string)
|
|
|
+ *m.ServiceTime = time.Now().Format("2006-01-02 15:04:05")
|
|
|
if b, e := proto.Marshal(&m); e != nil {
|
|
|
global.M2A_LOG.Error(e.Error(), zap.Error(e))
|
|
|
err = errors.New("请求信息序列化失败")
|