This commit is contained in:
邹宗楠
2025-04-29 14:37:05 +08:00
parent aa75b6e1ae
commit 90111dd57e
2 changed files with 9 additions and 10 deletions

View File

@@ -60,9 +60,9 @@ func BarCodeScannerPay(vendorOrderId string, userPaymentLabel string) (payCode s
Signtype: tonglianpayapi.EncryptionRsa,
}
terminfo := &tonglianpayapi.TerminfoBase{
Termno: fmt.Sprintf("%d_1", goodsOrder.JxStoreID),
Devicetype: "10",
Termsn: fmt.Sprintf("%d_1", goodsOrder.JxStoreID),
Termno: fmt.Sprintf("%d00", goodsOrder.JxStoreID),
Devicetype: "11",
Termsn: fmt.Sprintf("%d00", goodsOrder.JxStoreID),
Longitude: fmt.Sprintf("+%s", utils.Float64ToStr(jxutils.IntCoordinate2Standard(storeDetail.Lng))),
Latitude: fmt.Sprintf("+%s", utils.Float64ToStr(jxutils.IntCoordinate2Standard(storeDetail.Lat))),
}
@@ -302,9 +302,9 @@ func AddStoreTerm(storeId int, operation string) error {
address = storeDetail.Address[index+len(storeDetail.DistrictName):]
}
param := &tonglianpayapi.AddTermReq{
Termno: fmt.Sprintf("%d_1", storeDetail.ID),
Devicetype: "10",
Termsn: fmt.Sprintf("%d_1", storeDetail.ID),
Termno: fmt.Sprintf("%d00", storeDetail.ID),
Devicetype: "11",
Termsn: fmt.Sprintf("%d00", storeDetail.ID),
Operation: operation,
Termstate: "",
Termaddress: fmt.Sprintf("%s-%s-%s-%s", storeDetail.ProvinceName, storeDetail.CityName, storeDetail.DistrictName, address),