|
@@ -23,6 +23,7 @@ type ResourcePack struct {
|
|
tes xweb.Mapper `xweb:"/tes"` //测试
|
|
tes xweb.Mapper `xweb:"/tes"` //测试
|
|
createOrder xweb.Mapper `xweb:"/resourcePack/createOrder"` //线上自助数据包充值-创建订单
|
|
createOrder xweb.Mapper `xweb:"/resourcePack/createOrder"` //线上自助数据包充值-创建订单
|
|
account xweb.Mapper `xweb:"/resourcePack/account"` //个人账户
|
|
account xweb.Mapper `xweb:"/resourcePack/account"` //个人账户
|
|
|
|
+ price xweb.Mapper `xweb:"/resourcePack/price"` //价格
|
|
}
|
|
}
|
|
|
|
|
|
const (
|
|
const (
|
|
@@ -183,3 +184,13 @@ func (this *ResourcePack) Account() {
|
|
}
|
|
}
|
|
this.ServeJson(Result{Data: data})
|
|
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: "参数错误"})
|
|
|
|
+}
|