Compare commits

..

No commits in common. "fe6ac1be55cd6fe670728eb0036a3ae0b70fd2e4" and "2c2c9499cc8e0236f1881eb7f657d279d5d2e77a" have entirely different histories.

3 changed files with 1367 additions and 1382 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,8 @@ import (
fmt "fmt" fmt "fmt"
math "math" math "math"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
_ "google.golang.org/protobuf/types/descriptorpb"
_ "github.com/mwitkow/go-proto-validators" _ "github.com/mwitkow/go-proto-validators"
_ "google.golang.org/protobuf/types/descriptorpb"
github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators"
) )

View File

@ -195,7 +195,7 @@ func AutoCreateUserAndOrder(c *gin.Context) {
f64, err := strconv.ParseFloat(unfinishInfo.OrderPayAmount, 32) f64, err := strconv.ParseFloat(unfinishInfo.OrderPayAmount, 32)
TotalPrice = float32(f64) TotalPrice = float32(f64)
addRecords = append(addRecords, addRecords = append(addRecords,
&bundle.OrderCreateAddRecord{ &bundle.OrderCreateAddRecord{ //视频
ServiceType: 1, ServiceType: 1,
ValueUid: videoUuid, ValueUid: videoUuid,
CurrencyType: 2, //美元 CurrencyType: 2, //美元
@ -204,7 +204,6 @@ func AutoCreateUserAndOrder(c *gin.Context) {
Unit: "个", Unit: "个",
Source: 1, Source: 1,
PaymentStatus: 1, PaymentStatus: 1,
HandlingFee: unfinishInfo.OrderFeeAmount,
}, &bundle.OrderCreateAddRecord{ //图文 }, &bundle.OrderCreateAddRecord{ //图文
ServiceType: 2, ServiceType: 2,
ValueUid: textAndImagesUuid, ValueUid: textAndImagesUuid,
@ -214,7 +213,6 @@ func AutoCreateUserAndOrder(c *gin.Context) {
Unit: "个", Unit: "个",
Source: 1, Source: 1,
PaymentStatus: 1, PaymentStatus: 1,
HandlingFee: unfinishInfo.OrderFeeAmount,
}, &bundle.OrderCreateAddRecord{ //数据报表 }, &bundle.OrderCreateAddRecord{ //数据报表
ServiceType: 3, ServiceType: 3,
ValueUid: reportUuid, ValueUid: reportUuid,
@ -224,7 +222,6 @@ func AutoCreateUserAndOrder(c *gin.Context) {
Unit: "个", Unit: "个",
Source: 1, Source: 1,
PaymentStatus: 1, PaymentStatus: 1,
HandlingFee: unfinishInfo.OrderFeeAmount,
}, &bundle.OrderCreateAddRecord{ //账号数 }, &bundle.OrderCreateAddRecord{ //账号数
ServiceType: 4, ServiceType: 4,
ValueUid: accountUuid, ValueUid: accountUuid,
@ -234,7 +231,6 @@ func AutoCreateUserAndOrder(c *gin.Context) {
Unit: "个", Unit: "个",
Source: 1, Source: 1,
PaymentStatus: 1, PaymentStatus: 1,
HandlingFee: unfinishInfo.OrderFeeAmount,
}, &bundle.OrderCreateAddRecord{ //可用时长 }, &bundle.OrderCreateAddRecord{ //可用时长
ServiceType: 5, ServiceType: 5,
ValueUid: durationUuid, ValueUid: durationUuid,
@ -244,7 +240,6 @@ func AutoCreateUserAndOrder(c *gin.Context) {
Unit: "年", Unit: "年",
Source: 1, Source: 1,
PaymentStatus: 1, PaymentStatus: 1,
HandlingFee: unfinishInfo.OrderFeeAmount,
}, },
) )
// 当前 未将 签名 写入合同中 todo 金额和有效时间待修改 // 当前 未将 签名 写入合同中 todo 金额和有效时间待修改