Procházet zdrojové kódy

代金券 改为 提货券

abiao před 5 roky
rodič
revize
53bead12ad
30 změnil soubory, kde provedl 74 přidání a 74 odebrání
  1. 5 5
      go/gopath/src/fohow.com/apps/controllers/balance_controller/balance_controller.go
  2. 1 1
      go/gopath/src/fohow.com/apps/controllers/cron_controller/order_receive_automatically.go
  3. 1 1
      go/gopath/src/fohow.com/apps/controllers/order_controller/order_controller.go
  4. 5 5
      go/gopath/src/fohow.com/apps/controllers/pay_controller/after_pay_controller.go
  5. 2 2
      go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_balance_controller.go
  6. 2 2
      go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_controller.go
  7. 4 4
      go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_exchange_controller.go
  8. 6 6
      go/gopath/src/fohow.com/apps/controllers/pay_controller/recharge_controller.go
  9. 2 2
      go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/order_refund_controller.go
  10. 1 1
      go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/update_shop_application.go
  11. 1 1
      go/gopath/src/fohow.com/apps/controllers/user_controller/user_controller.go
  12. 1 1
      go/gopath/src/fohow.com/apps/helpers/promotion_helper.go
  13. 1 1
      go/gopath/src/fohow.com/apps/init.go
  14. 3 3
      go/gopath/src/fohow.com/apps/models/balance_model/balance.go
  15. 4 4
      go/gopath/src/fohow.com/apps/models/balance_model/cash_balance.go
  16. 2 2
      go/gopath/src/fohow.com/apps/models/order_model/order.go
  17. 2 2
      go/gopath/src/fohow.com/apps/models/pay_model/init.go
  18. 1 1
      go/gopath/src/fohow.com/apps/models/user_model/invite.go
  19. 4 4
      go/gopath/src/fohow.com/libs/wx_mp/pay.go
  20. 6 6
      go/gopath/src/fohow.com/routers/routes.go
  21. 1 1
      go/gopath/src/github.com/chanxuehong/wechat/mch/mmpaymkttransfers/query_coupon_stock.go
  22. 1 1
      go/gopath/src/github.com/chanxuehong/wechat/mch/mmpaymkttransfers/send_coupon.go
  23. 1 1
      go/gopath/src/github.com/chanxuehong/wechat/mch/promotion/query_coupon.go
  24. 8 8
      go/gopath/src/github.com/chanxuehong/wechat/mp/card/card_struct.go
  25. 1 1
      go/gopath/src/github.com/chanxuehong/wechat/mp/card/membercard/activate.go
  26. 3 3
      go/gopath/src/github.com/chanxuehong/wechat/mp/card/membercard/updateuser.go
  27. 1 1
      go/gopath/src/github.com/chanxuehong/wechat/mp/card/membercard/userinfo/get.go
  28. 1 1
      go/gopath/src/github.com/chanxuehong/wechat/mp/datacube/card/getcardcardinfo.go
  29. 2 2
      go/gopath/src/github.com/chanxuehong/wechat/tools/mpdoc/20150330-213710/典型案例介绍.html
  30. 1 1
      go/gopath/src/github.com/chanxuehong/wechat/tools/mpdoc/20150330-213710/微信卡券接口.html

+ 5 - 5
go/gopath/src/fohow.com/apps/controllers/balance_controller/balance_controller.go

@@ -27,7 +27,7 @@ const (
 	WX_TAKE_CASH_AMOUNT_LIMIT_MAX = 500000  //5000元
 )
 
-//代金券和代金券余额
+//提货券和提货券余额
 func (self *BalanceController) GetBalanceInfo() {
 	type BalanceInfo struct {
 		Total          int64 `orm:"-" json:"total"`            //余额,单位分
@@ -46,7 +46,7 @@ func (self *BalanceController) GetBalanceInfo() {
 	self.ServeJSON()
 }
 
-//代金券变动列表
+//提货券变动列表
 func (self *BalanceController) GetBalanceList() {
 	page, _ := self.GetInt64("page", 1)
 	perPage, _ := self.GetInt64("per_page", 20)
@@ -280,7 +280,7 @@ func (self *BalanceController) GetTakeCashOrders() {
 	self.ServeJSON()
 }
 
-//佣金转代金
+//佣金转提货
 func (self *BalanceController) TransferToBalance() {
 	//单位:分
 	amount, _ := self.GetInt64("amount")
@@ -306,14 +306,14 @@ func (self *BalanceController) TransferToBalance() {
 	}
 	result := true
 	//remark:= fmt.Sprintf("%s%d", "佣金转余额", amount)
-	remark := "佣金转代金券"
+	remark := "佣金转提货券"
 	source := balance_model.CASH_TO_BALANCE
 
 	//先扣余额
 	order := new(balance_model.CashBalance).Create(wxUser.Id, -amount, source,
 		"cash_balance", remark)
 
-	//增加代金券金额
+	//增加提货券金额
 	if order != nil {
 		total := amount * int64(2)
 		oId := fmt.Sprintf("%d", order.Id)

+ 1 - 1
go/gopath/src/fohow.com/apps/controllers/cron_controller/order_receive_automatically.go

@@ -90,7 +90,7 @@ func OrderCancelAutomatically() {
 		//如果下单时间超过一天,则取消订单
 		if order.Status == order_model.STATUS_UNPAY && order.CreatedAt.Unix()+int64(payTime) < time.Now().Unix() {
 			if order.CouponPrice > 0 {
-				//退款至代金券账户
+				//退款至提货券账户
 				source := balance_model.BALANCE_SOURCE_ALL_REFUNDED_NAME
 				remark := fmt.Sprintf("取消订单退款")
 				new(balance_model.Balance).Create(order.WxUserId, order.UserId, order.CouponPrice, source, orderId, remark)

+ 1 - 1
go/gopath/src/fohow.com/apps/controllers/order_controller/order_controller.go

@@ -457,7 +457,7 @@ func (self *OrderController) Operate() {
 		cancelKey := lib_redis.GetOrderCancelList()
 		lib_redis.ThrowOutRedisList(cancelKey, o.OrderId)
 		if o.CouponPrice > 0 {
-			//退款至代金券账户
+			//退款至提货券账户
 			source := balance_model.BALANCE_SOURCE_ALL_REFUNDED_NAME
 			remark := fmt.Sprintf("取消订单退款")
 			new(balance_model.Balance).Create(o.WxUserId, o.UserId, o.CouponPrice, source, o.OrderId, remark)

+ 5 - 5
go/gopath/src/fohow.com/apps/controllers/pay_controller/after_pay_controller.go

@@ -70,7 +70,7 @@ func (self *PayController) PayAsync() {
 	}
 }
 
-//微信购买代金
+//微信购买提货
 func (self *PayController) wxPayBalanceAsync() {
 
 	var notifyResponse = map[string]string{
@@ -105,7 +105,7 @@ func (self *PayController) wxPayBalanceAsync() {
 	}
 
 	//重复回调通知时,判断订单状态是否处理过了
-	//beego.BeeLogger.Warn("小程序购买代金券微信支付回调通知,订单编号=%s", order.OrderId)
+	//beego.BeeLogger.Warn("小程序购买提货券微信支付回调通知,订单编号=%s", order.OrderId)
 	if order.State == 1 {
 		notifyResponse["return_code"] = wx_mp.PAY_SUCCESS
 		self.Ctx.WriteString(wx_mp.MapToXmlString(notifyResponse))
@@ -132,7 +132,7 @@ func (self *PayController) wxPayBalanceAsync() {
 	}
 
 	notifyResponse["return_code"] = wx_mp.PAY_SUCCESS
-	//beego.BeeLogger.Warn("小程序购买代金券微信支付回调通知,订单编号=%s  订单状态=%d", order.OrderId, order.State)
+	//beego.BeeLogger.Warn("小程序购买提货券微信支付回调通知,订单编号=%s  订单状态=%d", order.OrderId, order.State)
 	self.Ctx.WriteString(wx_mp.MapToXmlString(notifyResponse))
 	return
 
@@ -225,7 +225,7 @@ func newSendInviterBenefit(wxUser *user_model.WxUser, orderId, source string) {
 				inviteOrder := new(user_model.InviteOrder).Create(benefitWxUser.Id, wxUser.Id, wxUser.Id, count, balanceOrder.TotalPrice, user_model.BALANCE_BENEFIT, balanceOrder.OrderId)
 				//发放现金佣金
 				s := balance_model.BALANCE_SOURCE_BENEFIT
-				remark := fmt.Sprintf("%s%s", wxUser.Nickname, "充值代金券")
+				remark := fmt.Sprintf("%s%s", wxUser.Nickname, "充值提货券")
 				b := balance_model.GetCashBalanceByWxUIdAndRIdAndSource(benefitWxUser.Id, balanceOrder.OrderId, s)
 				if b == nil {
 					b = new(balance_model.CashBalance).Create(inviteOrder.BenefitWxUId, count, s, balanceOrder.OrderId, remark)
@@ -260,7 +260,7 @@ func shopSendInviterBenefit(wxUser *user_model.WxUser, orderId, source string) {
 			return
 		}
 		if benefitWxUser != nil {
-			//不扣代金券,只计算8%佣金
+			//不扣提货券,只计算8%佣金
 			count := int64(math.Floor(float64(productOrder.TotalPrice) * order_model.SHOP_BENETFIT_BL))
 			remark := fmt.Sprintf("%s%s", wxUser.Nickname, "店铺专区购物")
 			//发放佣金

+ 2 - 2
go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_balance_controller.go

@@ -10,7 +10,7 @@ import (
 	"fohow.com/libs/wx_mp"
 )
 
-//代金券充值-微信支付
+//提货券充值-微信支付
 func (self *PayController) wxPayBalance(orderId string) {
 	//user := self.GetCurrentUser(true)
 	//if user == nil{
@@ -40,7 +40,7 @@ func (self *PayController) wxPayBalance(orderId string) {
 	beego.BeeLogger.Debug("pay.total_price(%d)", totalPrice)
 	//获取预支付信息/v1/pay/:target:string/async/:payway:string
 	notifyUrl := fmt.Sprintf("%s/v1/pay/%s/async/%s", beego.AppConfig.String("ApiHost"), BALANCE_TARGET, balance_model.PAY_WAY_TYPE_SERVICE_WXPAY) // balance "service_wxpay"
-	body := "FOHOW玖玖-购买代金券"
+	body := "FOHOW玖玖-购买提货券"
 	//payData := wx_mp.GetPayDataLimitPay(wxUser.Openid, balanceOrder.OrderId, totalPrice, body, notifyUrl, self.Ctx.Input.IP())
 	payData := wx_mp.GetPayDataLimitPay(wxUser.Openid, balanceOrder.OrderId, totalPrice, body, notifyUrl, self.Ctx.Input.IP())
 	//返回数据

+ 2 - 2
go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_controller.go

@@ -39,7 +39,7 @@ func (self *PayController) Pay() {
 
 	switch target {
 
-	case BALANCE_TARGET: // 代金券余额充值
+	case BALANCE_TARGET: // 提货券余额充值
 
 		switch payWay {
 		case balance_model.PAY_WAY_TYPE_SERVICE_WXPAY: //微信支付不需要输入交易密码
@@ -78,7 +78,7 @@ func getTargetByOId(oId string) string {
 		return CASH_TARGET
 	}
 
-	// 代金券充值
+	// 提货券充值
 	if strings.HasPrefix(oId, balance_model.ORDER_ID_PREFIX_CZ) {
 		return BALANCE_TARGET
 	}

+ 4 - 4
go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_exchange_controller.go

@@ -113,7 +113,7 @@ func (self *PayController) payExchange(oId, payWay, tradPwd, returnUrl, source s
 		if order.Status != order_model.STATUS_UNPAY {
 			self.ReturnError(403, apps.NotUnPay, "", nil)
 		}
-		//若账户有代金券则优先抵扣代金
+		//若账户有提货券则优先抵扣提货
 		needWx := true
 		totalCoupon := int64(0)
 		userLeftBalanceCount := balance_model.GetUserTotalBalance(wxUId)
@@ -131,15 +131,15 @@ func (self *PayController) payExchange(oId, payWay, tradPwd, returnUrl, source s
 				totalCoupon = tp
 			}
 		}
-		//先扣减代金
+		//先扣减提货
 		if totalCoupon > 0 {
 			source := balance_model.BALANCE_SOURCE_EXCHANGE_PRODUCT
-			remark := fmt.Sprintf("代金券兑换商品")
+			remark := fmt.Sprintf("提货券兑换商品")
 			new(balance_model.Balance).Create(wxUId, uId, -totalCoupon, source, oId, remark)
 		}
 		order.CouponPrice = totalCoupon
 		switch needWx { // 1.true需要微信支付,2.false不需要微信支付
-		case false: // 代金券抵扣完毕
+		case false: // 提货券抵扣完毕
 			//更新订单状态
 			order.Status = order_model.STATUS_PROCESSING
 			order.PaiedAt = time.Now().Unix()

+ 6 - 6
go/gopath/src/fohow.com/apps/controllers/pay_controller/recharge_controller.go

@@ -9,10 +9,10 @@ import (
 	"strings"
 )
 
-//代金券充值订单
+//提货券充值订单
 func (self *PayController) CreateBalanceOrder() {
 
-	//校验兑换代金券数量,为正整数
+	//校验兑换提货券数量,为正整数
 	//count, _ := self.GetInt64("count") //兑换数量
 	count := base_config.GetBuyCash()
 
@@ -21,7 +21,7 @@ func (self *PayController) CreateBalanceOrder() {
 	}
 	payway := self.GetString("payway")
 
-	//buyId, _ := self.GetInt64("buy_id")代金券购买类型:10000代金券花费100元...
+	//buyId, _ := self.GetInt64("buy_id")提货券购买类型:10000提货券花费100元...
 	//展开购买类型的业务逻辑
 
 	user := self.GetCurrentUser(true)
@@ -49,7 +49,7 @@ func (self *PayController) CreateBalanceOrder() {
 	self.ServeJSON()
 }
 
-//添加代金券记录
+//添加提货券记录
 func recharge(wxUId, uId, c int64, rId string) {
 	source := balance_model.BALANCE_SOURCE_RECHARGE
 	item := balance_model.GetBalanceBySourceAndRId(source, rId)
@@ -62,7 +62,7 @@ func recharge(wxUId, uId, c int64, rId string) {
 	}
 }
 
-//代金券充值成功通知
+//提货券充值成功通知
 func rechargeNotice(uId int64, balance *balance_model.Balance) {
 	//user := user_model.GetUserById(uId, false)
 	//openId := user.GetOpenid()
@@ -89,7 +89,7 @@ func rechargeNotice(uId int64, balance *balance_model.Balance) {
 //余额充值订单
 func (self *PayController) CreateRechargeCashOrder() {
 
-	//校验兑换代金券数量,为正整数
+	//校验兑换提货券数量,为正整数
 	count, _ := self.GetInt64("count") //兑换数量
 	//count := balance_model.BALANCE_PAIED
 	if count <= 0 {

+ 2 - 2
go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/order_refund_controller.go

@@ -55,7 +55,7 @@ func (self *RailsadminController) OrderRefund() {
 			}
 		}
 
-		//返还上级代金
+		//返还上级提货
 		balance_source := balance_model.BALANCE_FREND_BUY
 		balance := balance_model.GetBalanceBySourceAndRId(balance_source, refund.OrderId)
 		if balance != nil {
@@ -68,7 +68,7 @@ func (self *RailsadminController) OrderRefund() {
 			new(balance_model.Balance).Create(balance.WxUserId, balance.UserId, count, source, refund.OrderId, remark)
 		}
 
-		//返还会员代金券账户
+		//返还会员提货券账户
 		if o.CouponPrice > int64(0) {
 			source := balance_model.BALANCE_SOURCE_ALL_REFUNDED_NAME
 			remark := fmt.Sprintf("取消订单退款")

+ 1 - 1
go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/update_shop_application.go

@@ -58,7 +58,7 @@ func ApplySuccessInviterBenefit(wxUser *user_model.WxUser, shopId int64, source
 	if shopApply == nil {
 		return
 	}
-	//本人充值16800--发放4200代金
+	//本人充值16800--发放4200提货
 	rId := fmt.Sprintf("shop-apply-%d", shopId)
 	c := base_config.GetUserCash()
 	if shopApply.Total == base_config.GetAgentApply() {

+ 1 - 1
go/gopath/src/fohow.com/apps/controllers/user_controller/user_controller.go

@@ -521,7 +521,7 @@ func (self *UserController) SysUserBind() {
 		new(cent_model.CentBalance).Create(sysWxUser.Id, c.Cent*int64(100), s, relateId, remark)
 	}
 
-	//迁移代金券记录--cash
+	//迁移提货券记录--cash
 	if c.Cash > 0 {
 		s := "sys_init"
 		new(balance_model.Balance).Create(sysWxUser.Id, sysWxUser.UserId, c.Cash*int64(100), s, relateId, remark)

+ 1 - 1
go/gopath/src/fohow.com/apps/helpers/promotion_helper.go

@@ -123,7 +123,7 @@ func SetOrderPromotion(orderId string, wxUid int64) {
 			//赠送积分 or 代办费
 			if item.Cash > 0 {
 				source := balance_model.BALANCE_SOURCE_PROMOTION
-				remark := fmt.Sprintf("促销赠送代金券")
+				remark := fmt.Sprintf("促销赠送提货券")
 				new(balance_model.Balance).Create(order.WxUserId, order.UserId, item.Cash, source, order.OrderId, remark)
 			}
 			if item.Cent > 0 {

+ 1 - 1
go/gopath/src/fohow.com/apps/init.go

@@ -167,7 +167,7 @@ var (
 	BankCardCountLimit               = []string{"bankCardCountLimit", "银行卡绑定数量限制"}
 	CanNotDeleteDefaultBankCard      = []string{"canNotDeleteDefaultBankCard", "不能删除默认银行卡"}
 	BankCardHasBound                 = []string{"bankCardHasBound", "该银行卡已有绑定记录"}
-	BalanceToCashErr                 = []string{"balanceToCashErr", "余额转代金券失败"}
+	BalanceToCashErr                 = []string{"balanceToCashErr", "余额转提货券失败"}
 
 	//春节红包
 	ActivityNotStart = []string{"activityNotStart", "活动尚未开始"}

+ 3 - 3
go/gopath/src/fohow.com/apps/models/balance_model/balance.go

@@ -21,7 +21,7 @@ const (
 	// balance_hitories_tablename = "d5c_balance_hitories"
 	balance_orders_tablename = "balance_orders"
 	// BALANCE_SERVICE_CHARGE   = 100 //手续费
-	BALANCE_UPGRADE     = int64(420000) //升级代金
+	BALANCE_UPGRADE     = int64(420000) //升级提货
 	BALANCE_PAIED       = int64(300000) //升级支付金额
 	BALANCE_BL          = int64(8)      //群主推荐比例
 	RECHARGE_BALANCE_BL = int64(85)     //群主优惠比例
@@ -29,11 +29,11 @@ const (
 
 	ORDER_ID_PREFIX_CZ = "CZ" //充值
 
-	BALANCE_SOURCE_PLATFORM_EXCHANGE      = "platform_exchange" //企业大使兑换拉比代金
+	BALANCE_SOURCE_PLATFORM_EXCHANGE      = "platform_exchange" //企业大使兑换拉比提货
 	BALANCE_SOURCE_PLATFORM_EXCHANGE_NAME = "企业大使兑换"
 	BALANCE_SOURCE_RECHARGE               = "recharge" //充值
 	BALANCE_SOURCE_RECHARGE_NAME          = "充值"
-	BALANCE_SOURCE_EXCHANGE_PRODUCT       = "exchange_product" //拉比代金券兑换商品
+	BALANCE_SOURCE_EXCHANGE_PRODUCT       = "exchange_product" //拉比提货券兑换商品
 	BALANCE_SOURCE_EXCHANGE_PRODUCT_NAME  = "兑换商品"
 	BALANCE_SOURCE_ALL_REFUNDED           = "all_refunded"
 	BALANCE_SOURCE_ALL_REFUNDED_NAME      = "全额退款"

+ 4 - 4
go/gopath/src/fohow.com/apps/models/balance_model/cash_balance.go

@@ -23,8 +23,8 @@ const (
 	CASH_SOURCE_TAKE_CASH      = "take_cash" //提现
 	CASH_SOURCE_TAKE_CASH_NAME = "提现"
 
-	CASH_TO_BALANCE      = "cash_to_balance" //佣金转代金
-	CASH_TO_BALANCE_NAME = "佣金转代金券"
+	CASH_TO_BALANCE      = "cash_to_balance" //佣金转提货
+	CASH_TO_BALANCE_NAME = "佣金转提货券"
 
 	CASH_SOURCE_CORRECT           = "correct" //冲正
 	CASH_SOURCE_CORRECT_NAME      = "冲正"
@@ -37,8 +37,8 @@ const (
 	CASH_SOURCE_PRODUCT_BENEFIT_NAME = "商品佣金"
 	CASH_SOURCE_SHOP_BENEFIT         = "shop_benefit" // 一级商品佣金
 	CASH_SOURCE_SHOP_BENEFIT_NAME    = "店长申请佣金"
-	BALANCE_SOURCE_BENEFIT           = "balance_benefit" // 代金券充值佣金
-	BALANCE_SOURCE_BENEFIT_NAME      = "代金券充值佣金"
+	BALANCE_SOURCE_BENEFIT           = "balance_benefit" // 提货券充值佣金
+	BALANCE_SOURCE_BENEFIT_NAME      = "提货券充值佣金"
 
 	FX_CASH_SOURCE_PRODUCT_BENEFIT      = "fx_product_benefit" // 二级商品佣金
 	FX_CASH_SOURCE_PRODUCT_BENEFIT_NAME = "分享商品佣金"

+ 2 - 2
go/gopath/src/fohow.com/apps/models/order_model/order.go

@@ -31,8 +31,8 @@ const (
 	ORDER_ID_PREFIX_EX = "EX" //兑换订单
 
 	PAY_WAY_WEIXIN   = "weixinpay" //微信支付
-	PAY_WAY_BALANCE  = "balance"   //代金券余额支付
-	PAY_WAY_INTEGRAl = "integral"  //代金券支付
+	PAY_WAY_BALANCE  = "balance"   //提货券余额支付
+	PAY_WAY_INTEGRAl = "integral"  //提货券支付
 	PAY_WAY_CENT     = "cent"      //积分支付
 
 	SOURCE_XCX     = "xcx"

+ 2 - 2
go/gopath/src/fohow.com/apps/models/pay_model/init.go

@@ -13,8 +13,8 @@ func init() {
 
 const (
 	PAYWAY_WEIXINPAY = "weixinpay" //微信支付
-	PAYWAY_BALANCE   = "balance"   //我的代金
-	PAY_WAY_INTEGRAL = "integral"  //代金
+	PAYWAY_BALANCE   = "balance"   //我的提货
+	PAY_WAY_INTEGRAL = "integral"  //提货
 	PAYWAY_CENT      = "cent"      //积分支付
 
 )

+ 1 - 1
go/gopath/src/fohow.com/apps/models/user_model/invite.go

@@ -17,7 +17,7 @@ const (
 	SOURCE_PRODUCT_BENEFIT    = "product_benefit"    //商品佣金
 	FX_SOURCE_PRODUCT_BENEFIT = "fx_product_benefit" //二级商品佣金
 	SOURCE_PROJECT_BENEFIT    = "project_benefit"    //申请店长佣金
-	BALANCE_BENEFIT           = "balance_benefit"    //代金券充值佣金
+	BALANCE_BENEFIT           = "balance_benefit"    //提货券充值佣金
 	SOURCE_SHOP_BENEFIT       = "shop_benefit"       //申请店长佣金
 
 	SECOND_RELATE_ID_PREFIT = "SECOND_"

+ 4 - 4
go/gopath/src/fohow.com/libs/wx_mp/pay.go

@@ -99,10 +99,10 @@ type PayResult struct {
 	FeeType            string   `xml:"fee_type"`             //货币种类
 	CashFee            string   `xml:"cash_fee"`             //cash_fee
 	CashFeeType        string   `xml:"cash_fee_type"`        //现金支付货币类型
-	CouponFee          string   `xml:"coupon_fee"`           //代金券或立减优惠金额
-	CouponCount        string   `xml:"coupon_count"`         //代金券或立减优惠使用数量
-	CouponFee0         string   `xml:"coupon_fee_0"`         //单个代金券支付金额,$n为下标,从0开始编号
-	CouponId0          string   `xml:"coupon_id_0"`          //代金券ID,$n为下标,从0开始编号
+	CouponFee          string   `xml:"coupon_fee"`           //提货券或立减优惠金额
+	CouponCount        string   `xml:"coupon_count"`         //提货券或立减优惠使用数量
+	CouponFee0         string   `xml:"coupon_fee_0"`         //单个提货券支付金额,$n为下标,从0开始编号
+	CouponId0          string   `xml:"coupon_id_0"`          //提货券ID,$n为下标,从0开始编号
 	TransactionId      string   `xml:"transaction_id"`       //微信支付订单号
 	OutTradeNO         string   `xml:"out_trade_no"`         //商户订单号
 	Attach             string   `xml:"attach"`               // 商家数据包

+ 6 - 6
go/gopath/src/fohow.com/routers/routes.go

@@ -106,7 +106,7 @@ func init() {
 	//----------- 支付相关 -----------
 	beego.Router("/v1/pay", &pay_controller.PayController{}, "post,get:Pay")
 	beego.Router("/v1/pay/:target:string/async/:payway:string", &pay_controller.PayController{}, "post,get:PayAsync")
-	//生成充值代金券订单
+	//生成充值提货券订单
 	beego.Router("/v1/balance_order/generate", &pay_controller.PayController{}, "post:CreateBalanceOrder")
 	//生成充值余额订单
 	beego.Router("/v1/recas_order/generate", &pay_controller.PayController{}, "post:CreateRechargeCashOrder")
@@ -170,11 +170,11 @@ func init() {
 	// beego.Router("/v1/user/head/upload", &user_controller.UserController{}, "post:UploadHead")
 
 	//----------- 账户相关 -----------
-	//代金券账户变更列表
+	//提货券账户变更列表
 	beego.Router("/v1/user/balances", &balance_controller.BalanceController{}, "get:GetBalanceList")
-	//代金券账户变更详情
+	//提货券账户变更详情
 	beego.Router("/v1/user/balance/:id([0-9]+)", &balance_controller.BalanceController{}, "get:GetBalanceDetail")
-	//代金券账户余额
+	//提货券账户余额
 	beego.Router("/v1/user/balance/info", &balance_controller.BalanceController{}, "get:GetBalanceInfo")
 	//现金账户变动列表
 	beego.Router("/v1/user/cash/balances", &balance_controller.BalanceController{}, "get:GetCashBalanceList")
@@ -186,9 +186,9 @@ func init() {
 	beego.Router("/v1/user/takecash/flow", &balance_controller.BalanceController{}, "get:GetTakeCashOrders")
 	//提现限额
 	beego.Router("/v1/user/takecash/limit", &balance_controller.BalanceController{}, "get:GetTakeCashLimit")
-	//转代金
+	//转提货
 	beego.Router("/v1/user/cash_transfer", &balance_controller.BalanceController{}, "post:TransferToBalance")
-	//转代金券流
+	//转提货券流
 	beego.Router("/v1/user/transfercash/flow", &balance_controller.BalanceController{}, "get:GetCashToBalanceList")
 
 	// //充值订单创建

+ 1 - 1
go/gopath/src/github.com/chanxuehong/wechat/mch/mmpaymkttransfers/query_coupon_stock.go

@@ -9,7 +9,7 @@ import (
 	"github.com/chanxuehong/wechat/mch"
 )
 
-// 查询代金券批次信息.
+// 查询提货券批次信息.
 func QueryCouponStock(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
 	return pxy.PostXML("https://api.mch.weixin.qq.com/mmpaymkttransfers/query_coupon_stock", req)
 }

+ 1 - 1
go/gopath/src/github.com/chanxuehong/wechat/mch/mmpaymkttransfers/send_coupon.go

@@ -9,7 +9,7 @@ import (
 	"github.com/chanxuehong/wechat/mch"
 )
 
-// 发放代金券.
+// 发放提货券.
 //  请求需要双向证书
 func SendCoupon(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
 	return pxy.PostXML("https://api.mch.weixin.qq.com/mmpaymkttransfers/send_coupon", req)

+ 1 - 1
go/gopath/src/github.com/chanxuehong/wechat/mch/promotion/query_coupon.go

@@ -9,7 +9,7 @@ import (
 	"github.com/chanxuehong/wechat/mch"
 )
 
-// 查询代金券信息.
+// 查询提货券信息.
 func QueryCoupon(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
 	return pxy.PostXML("https://api.mch.weixin.qq.com/promotion/query_coupon", req)
 }

+ 8 - 8
go/gopath/src/github.com/chanxuehong/wechat/mp/card/card_struct.go

@@ -9,7 +9,7 @@ const (
 	// 卡券类型
 	CardTypeGeneralCoupon = "GENERAL_COUPON" // 优惠券
 	CardTypeGroupon       = "GROUPON"        // 团购券
-	CardTypeCash          = "CASH"           // 代金
+	CardTypeCash          = "CASH"           // 提货
 	CardTypeDiscount      = "DISCOUNT"       // 折扣券
 	CardTypeGift          = "GIFT"           // 礼品券
 	CardTypeMemberCard    = "MEMBER_CARD"    // 会员卡
@@ -47,11 +47,11 @@ type Groupon struct {
 	DealDetail string        `json:"deal_detail,omitempty"` // 团购券专用,团购详情
 }
 
-// 代金
+// 提货
 type Cash struct {
 	BaseInfo   *CardBaseInfo `json:"base_info,omitempty"`
-	LeastCost  *int          `json:"least_cost,omitempty"`  // 代金券专用, 表示起用金额(单位为分)
-	ReduceCost *int          `json:"reduce_cost,omitempty"` // 代金券专用, 表示减免金额(单位为分)
+	LeastCost  *int          `json:"least_cost,omitempty"`  // 提货券专用, 表示起用金额(单位为分)
+	ReduceCost *int          `json:"reduce_cost,omitempty"` // 提货券专用, 表示减免金额(单位为分)
 }
 
 // 折扣券
@@ -71,12 +71,12 @@ type MemberCard struct {
 	BaseInfo *CardBaseInfo `json:"base_info,omitempty"`
 
 	Prerogative       string                 `json:"prerogative,omitempty"`       // 会员卡特权说明
-	SupplyBonus       *bool                  `json:"supply_bonus,omitempty"`      // 显示代金券,填写true或false,如填写true,代金券相关字段均为必填
-	BonusURL          string                 `json:"bonus_url,omitempty"`         // 设置跳转外链查看代金券详情。仅适用于代金券无法通过激活接口同步的情况下使用该字段。
+	SupplyBonus       *bool                  `json:"supply_bonus,omitempty"`      // 显示提货券,填写true或false,如填写true,提货券相关字段均为必填
+	BonusURL          string                 `json:"bonus_url,omitempty"`         // 设置跳转外链查看提货券详情。仅适用于提货券无法通过激活接口同步的情况下使用该字段。
 	SupplyBalance     *bool                  `json:"supply_balance,omitempty"`    // 是否支持储值,填写true或false。如填写true,储值相关字段均为必填。
 	BalanceURL        string                 `json:"balance_url,omitempty"`       // 设置跳转外链查看余额详情。仅适用于余额无法通过激活接口同步的情况下使用该字段。
-	BonusClearedRules string                 `json:"bonus_cleared,omitempty"`     // 代金券清零规则。
-	BonusRules        string                 `json:"bonus_rules,omitempty"`       // 代金券规则。
+	BonusClearedRules string                 `json:"bonus_cleared,omitempty"`     // 提货券清零规则。
+	BonusRules        string                 `json:"bonus_rules,omitempty"`       // 提货券规则。
 	BalanceRules      string                 `json:"balance_rules,omitempty"`     // 储值说明。
 	ActivateURL       string                 `json:"activate_url,omitempty"`      // 激活会员卡的url。
 	NeedPushOnView    *bool                  `json:"need_push_on_view,omitempty"` // 填写true为用户点击进入会员卡时推送事件,默认为false。

+ 1 - 1
go/gopath/src/github.com/chanxuehong/wechat/mp/card/membercard/activate.go

@@ -18,7 +18,7 @@ type ActivateParameters struct {
 	ActivateBeginTime int64 `json:"activate_begin_time,omitempty"` // 可选; 激活后的有效起始时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。
 	ActivateEndTime   int64 `json:"activate_end_time,omitempty"`   // 可选; 激活后的有效截至时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。
 
-	InitBonus   *int `json:"init_bonus,omitempty"`   // 可选; 初始代金券, 不填为0
+	InitBonus   *int `json:"init_bonus,omitempty"`   // 可选; 初始提货券, 不填为0
 	InitBalance *int `json:"init_balance,omitempty"` // 可选; 初始余额, 不填为0
 
 	InitCustomFieldValue1 string `json:"init_custom_field_value1,omitempty"` // 可选, 创建时字段custom_field1定义类型的初始值,限制为4个汉字,12字节。

+ 3 - 3
go/gopath/src/github.com/chanxuehong/wechat/mp/card/membercard/updateuser.go

@@ -13,8 +13,8 @@ type UpdateUserParameters struct {
 	Code   string `json:"code"`              // 必须; 要消耗的序列号.
 	CardId string `json:"card_id,omitempty"` // 可选; 要消耗序列号所述的card_id. 自定义code 的会员卡必填
 
-	AddBonus      int    `json:"add_bonus,omitempty"`      // 必须; 需要变更的代金券,扣除代金券用“-“表示。
-	RecordBonus   string `json:"record_bonus,omitempty"`   // 可选; 商家自定义代金券消耗记录,不超过14个汉字。
+	AddBonus      int    `json:"add_bonus,omitempty"`      // 必须; 需要变更的提货券,扣除提货券用“-“表示。
+	RecordBonus   string `json:"record_bonus,omitempty"`   // 可选; 商家自定义提货券消耗记录,不超过14个汉字。
 	AddBalance    int    `json:"add_balance,omitempty"`    // 可选; 需要变更的余额,扣除金额用“-”表示。单位为分。
 	RecordBalance string `json:"record_balance,omitempty"` // 可选; 商家自定义金额消耗记录,不超过14个汉字。
 
@@ -24,7 +24,7 @@ type UpdateUserParameters struct {
 }
 
 type UpdateUserResult struct {
-	ResultBonus   int    `json:"result_bonus"`   // 当前用户代金券总额。
+	ResultBonus   int    `json:"result_bonus"`   // 当前用户提货券总额。
 	ResultBalance int    `json:"result_balance"` // 当前用户预存总金额。
 	OpenId        string `json:"openid"`         // 用户openid。
 }

+ 1 - 1
go/gopath/src/github.com/chanxuehong/wechat/mp/card/membercard/userinfo/get.go

@@ -22,7 +22,7 @@ type UserInfo struct {
 	CustomFieldList []CustomField `json:"custom_field_list"`
 }
 
-// 拉取会员信息(代金券查询)接口
+// 拉取会员信息(提货券查询)接口
 func Get(clt *mp.Client, id *code.CardItemIdentifier) (info *UserInfo, err error) {
 	var result struct {
 		mp.Error

+ 1 - 1
go/gopath/src/github.com/chanxuehong/wechat/mp/datacube/card/getcardcardinfo.go

@@ -13,7 +13,7 @@ import (
 type CardData struct {
 	RefDate      string `json:"ref_date"`     // 日期信息, YYYY-MM-DD
 	CardId       string `json:"card_id"`      // 卡券ID
-	CardType     int    `json:"card_type"`    // cardtype:0:折扣券,1:代金券,2:礼品券,3:优惠券,4:团购券(暂不支持拉取特殊票券类型数据,电影票、飞机票、会议门票、景区门票)
+	CardType     int    `json:"card_type"`    // cardtype:0:折扣券,1:提货券,2:礼品券,3:优惠券,4:团购券(暂不支持拉取特殊票券类型数据,电影票、飞机票、会议门票、景区门票)
 	IsPay        int    `json:"is_pay"`       // 是否付费券。0为非付费券,1为付费券
 	ViewCount    int    `json:"view_cnt"`     // 浏览次数
 	ViewUser     int    `json:"view_user"`    // 浏览人数

+ 2 - 2
go/gopath/src/github.com/chanxuehong/wechat/tools/mpdoc/20150330-213710/典型案例介绍.html

@@ -458,7 +458,7 @@ html{background-image:url(about:blank);background-attachment:fixed;}
 </p>
 <h3> <span class="mw-headline" id=".E6.8B.9B.E5.95.86.E9.93.B6.E8.A1.8C.E4.BF.A1.E7.94.A8.E5.8D.A1.E4.B8.AD.E5.BF.83"><b>招商银行信用卡中心</b></span></h3>
 <div class="center"><div class="floatnone"><a href="#" class="image"><img alt="招商银行.png" src="../static/assets/bff467b80a54da10cf47cc92cc3c1ff5.png" width="600" height="467" /></a></div></div>
-<p>如果你是持卡人,可快捷查询信用卡账单、额度及代金券;快速还款、申请账单分期;微信转接人工服务;信用卡消费,微信免费笔笔提醒。如果不是持卡人,可以微信办卡!
+<p>如果你是持卡人,可快捷查询信用卡账单、额度及提货券;快速还款、申请账单分期;微信转接人工服务;信用卡消费,微信免费笔笔提醒。如果不是持卡人,可以微信办卡!
 </p>
 <pre>招商银行公众号通过提示消息引导用户将自己的微信号和信用卡号安全绑定。
 用户可以通过该公众号查询账单、收取刷卡通知等功能,这是由招行开发人员通过公众号接口实现的功能。
@@ -472,7 +472,7 @@ html{background-image:url(about:blank);background-attachment:fixed;}
 </pre>
 <h3> <span class="mw-headline" id=".E5.B9.BF.E4.B8.9C.E8.81.94.E9.80.9A"><b>广东联通</b></span></h3>
 <div class="center"><div class="floatnone"><a href="#" class="image"><img alt="广东联通.png" src="../static/assets/52364d366ef5b9d9d32537984a925742.png" width="600" height="464" /></a></div></div>
-<p>你可以在微信里绑定手机号、代金券流量,套餐余量、手机上网流量,微信专属流量查询,客服咨询。
+<p>你可以在微信里绑定手机号、提货券流量,套餐余量、手机上网流量,微信专属流量查询,客服咨询。
 </p>
 <pre>广东联通公众号可以绑定手机号,来查询流量、套餐等等功能。
 广东联通更与微信深度合作,购买微信沃卡可以获得微信五大特权。

+ 1 - 1
go/gopath/src/github.com/chanxuehong/wechat/tools/mpdoc/20150330-213710/微信卡券接口.html

@@ -457,7 +457,7 @@ html{background-image:url(about:blank);background-attachment:fixed;}
 						<!-- /jumpto -->
 												<!-- bodytext -->
 						<p>微信公众平台本次更新增加了微信卡券功能,开放接口供商家使用。
-</p><p>目前支持优惠券(代金券、折扣券、礼品券、团购券)、会员卡、景点门票、电影票、飞机票、红包、会议门票等多种卡券类型。 
+</p><p>目前支持优惠券(提货券、折扣券、礼品券、团购券)、会员卡、景点门票、电影票、飞机票、红包、会议门票等多种卡券类型。
 开发者可以通过卡券接口快速完成制券、发券及销券流程: 
 </p><p><b>1、创建卡券接口</b> 
 开发者可通过该接口,创建卡券,导入/拉取卡券适用门店、获取卡券颜色列表。