zhangxinlei1996 3 năm trước cách đây
mục cha
commit
4b52811d8f
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 11 0
      src/jfw/modules/subscribepay/src/service/resourcePack.go

+ 11 - 0
src/jfw/modules/subscribepay/src/service/resourcePack.go

@@ -23,6 +23,7 @@ type ResourcePack struct {
 	tes         xweb.Mapper `xweb:"/tes"`                      //测试
 	createOrder xweb.Mapper `xweb:"/resourcePack/createOrder"` //线上自助数据包充值-创建订单
 	account     xweb.Mapper `xweb:"/resourcePack/account"`     //个人账户
+	price       xweb.Mapper `xweb:"/resourcePack/price"`       //价格
 }
 
 const (
@@ -183,3 +184,13 @@ func (this *ResourcePack) Account() {
 	}
 	this.ServeJson(Result{Data: data})
 }
+
+func (this *ResourcePack) Price() {
+	product := this.GetString("product")
+	switch product {
+	case "attachmentDownPack":
+		this.ServeJson(Result{Data: config.ResConf.AttachmentDownPackPrice})
+		return
+	}
+	this.ServeJson(Result{Error_msg: "参数错误"})
+}