fix:
This commit is contained in:
parent
d2f17242f0
commit
97120ba820
|
@ -2764,3 +2764,31 @@ func TestEvaluation(t *testing.T) {
|
||||||
fmt.Println("cassetteList:", cassetteList)
|
fmt.Println("cassetteList:", cassetteList)
|
||||||
fmt.Println("i:", i)
|
fmt.Println("i:", i)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestGameCardStockCreat(t *testing.T) {
|
||||||
|
GameCardStockCreat()
|
||||||
|
}
|
||||||
|
|
||||||
|
func GameCardStockCreat() {
|
||||||
|
InitDBProd()
|
||||||
|
gameCardId := 800
|
||||||
|
storeIds := []uint64{13, 17, 19, 21, 23, 26}
|
||||||
|
for i, _ := range storeIds {
|
||||||
|
goodsStock := &GameCardGoodsStock{
|
||||||
|
StoreId: storeIds[i],
|
||||||
|
GameCardId: uint64(gameCardId),
|
||||||
|
StoreStock: 0,
|
||||||
|
RentStock: 0,
|
||||||
|
UserHoldStock: 0,
|
||||||
|
OrderCount: 0,
|
||||||
|
TotalStock: 0,
|
||||||
|
CooperativeBusinessId: 1,
|
||||||
|
CooperativeName: "迪为合作商",
|
||||||
|
}
|
||||||
|
|
||||||
|
err := DBProd.Create(goodsStock).Error
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println("err:", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -318,8 +318,8 @@ type QueryMemberOrderDeliveryResp struct {
|
||||||
GoodsName string `json:"goodsName"`
|
GoodsName string `json:"goodsName"`
|
||||||
GoodsImg string `json:"goodsImg"`
|
GoodsImg string `json:"goodsImg"`
|
||||||
Imei string `json:"imei"`
|
Imei string `json:"imei"`
|
||||||
Price int `json:"price"`
|
Price float64 `json:"price"`
|
||||||
EvaluationPrice int `json:"evaluationPrice"`
|
EvaluationPrice float64 `json:"evaluationPrice"`
|
||||||
State int `json:"state"`
|
State int `json:"state"`
|
||||||
Status int `json:"status"`
|
Status int `json:"status"`
|
||||||
LogistDescn string `json:"logistDescn"`
|
LogistDescn string `json:"logistDescn"`
|
||||||
|
|
|
@ -42,10 +42,10 @@
|
||||||
"app_mchSecret": "DeovoMingHuiRengTianTang45675456"
|
"app_mchSecret": "DeovoMingHuiRengTianTang45675456"
|
||||||
},
|
},
|
||||||
"wx_pay": {
|
"wx_pay": {
|
||||||
"callback_url": "https://zouzou.api.wawazhuawawa.com/api/v1/wxpay/notice",
|
"callback_url": "https://switch.deovo.com:8001/api/v1/wxpay_refund/notice",
|
||||||
"cert_file":"/root/zouzou/configs/pro/1494688302_20190624_cert/apiclient_cert.p12",
|
"cert_file":"/Users/li/mh/mh_server/pack/configs/merchant/apiclient_cert.p12",
|
||||||
"key_file":"/root/zouzou/configs/pro/1494688302_20190624_cert/apiclient_key.pem",
|
"key_file":"/Users/li/mh/mh_server/pack/configs/merchant/apiclient_key.pem",
|
||||||
"root_ca_file":"/root/zouzou/configs/pro/1494688302_20190624_cert/apiclient_cert.pem"
|
"root_ca_file":"/Users/li/mh/mh_server/pack/configs/merchant/apiclient_cert.pem"
|
||||||
},
|
},
|
||||||
"ali_pay": {
|
"ali_pay": {
|
||||||
"callback_url": ""
|
"callback_url": ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user