|
@@ -41,13 +41,7 @@ func (this *RenewUpgrade) GetBuyMsg() {
|
|
|
endtime := qutil.Int64All((*data)["l_vip_endtime"])
|
|
|
end := time.Unix(endtime, 0).Format("2006-01-02")
|
|
|
now := time.Unix(time.Now().Unix(), 0).Format("2006-01-02")
|
|
|
- areaArr := qutil.ObjToMap(area)
|
|
|
- buyerclassArr := qutil.ObjArrToStringArr(buyerclass.([]interface{}))
|
|
|
- monthprice := entity.JyVipSubStruct.GetSubVipPrice(areaArr, buyerclassArr, 1, 2)
|
|
|
- yearprice := entity.JyVipSubStruct.GetSubVipPrice(areaArr, buyerclassArr, 1, 1)
|
|
|
- // log.Println("month", float64(monthprice)/100)
|
|
|
- // log.Println("year", float64(yearprice)/100)
|
|
|
- //
|
|
|
+
|
|
|
dataArr := map[string]interface{}{
|
|
|
"area": area,
|
|
|
"buyerclass": buyerclass,
|
|
@@ -58,8 +52,6 @@ func (this *RenewUpgrade) GetBuyMsg() {
|
|
|
"start": start,
|
|
|
"end": end,
|
|
|
"now": now,
|
|
|
- "monthprice": float64(monthprice) / 100,
|
|
|
- "yearprice": float64(yearprice) / 100,
|
|
|
}
|
|
|
this.ServeJson(dataArr)
|
|
|
}
|
|
@@ -180,7 +172,9 @@ func (this *RenewUpgrade) RenewUpgradeCreateOrder() {
|
|
|
}
|
|
|
}
|
|
|
log.Println("price", totalfee)
|
|
|
- totalfee = 1 //设置测试价格为0.01
|
|
|
+ if totalfee == 0 {
|
|
|
+ totalfee = 1
|
|
|
+ }
|
|
|
|
|
|
//创建订单
|
|
|
tradeno, prepayid, payStr := "", "", ""
|