临时bug 上报处方平台修复
This commit is contained in:
commit
0fb3681628
@ -4,6 +4,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"gorm.io/gorm"
|
||||
"hospital-admin-api/config"
|
||||
"hospital-admin-api/api/dao"
|
||||
"hospital-admin-api/api/model"
|
||||
"hospital-admin-api/extend/aliyun"
|
||||
@ -248,7 +249,7 @@ func (r *OrderService) ReportPreProduct(orderProductId, adminUserId int64) (bool
|
||||
|
||||
// 处理上传数据-基础数据
|
||||
ReportPreRequest := prescription.ReportPreRequest{
|
||||
TerminalCode: "ZD-10003",
|
||||
TerminalCode: config.C.Pre.PrePlatTerminalCode,
|
||||
OrderNo: orderProduct.OrderProductNo, // 订单编号
|
||||
TransactNo: orderProduct.EscrowTradeNo, // 流水单号
|
||||
PayDate: time.Time(orderProduct.PayTime).Format("2006-01-02 15:04:05"), // 支付时间
|
||||
|
||||
@ -110,6 +110,7 @@ pre:
|
||||
pre-plat-client-secret: 4sdjas2387sjdasjhdas289
|
||||
pre-plat-app-url: http://cf-thirdapi-test.yctang.net/api/thridapi/
|
||||
pre-plat-pharmacy-code: ZD-10198
|
||||
pre-plat-terminal-code: ZD-10199
|
||||
|
||||
# [rabbitMq]
|
||||
amqp:
|
||||
|
||||
@ -5,4 +5,5 @@ type Pre struct {
|
||||
PrePlatClientSecret string `mapstructure:"pre-plat-client-secret" json:"pre-plat-client-secret" yaml:"pre-plat-client-secret"`
|
||||
PrePlatAppUrl string `mapstructure:"pre-plat-app-url" json:"pre-plat-app-url" yaml:"pre-plat-app-url"`
|
||||
PrePlatPharmacyCode string `mapstructure:"pre-plat-pharmacy-code" json:"pre-plat-pharmacy-code" yaml:"pre-plat-pharmacy-code"`
|
||||
PrePlatTerminalCode string `mapstructure:"pre-plat-terminal-code" json:"pre-plat-terminal-code" yaml:"pre-plat-terminal-code"`
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user