创建微信卡券 php

这篇博客介绍了如何使用PHP创建微信卡券,包括设置卡券类型、商户名称、标题、颜色、提示信息、客服电话、使用须知以及有效期等关键参数。通过couponDo函数处理POST请求的数据,并调用微信API来生成卡券。
摘要由CSDN通过智能技术生成

public function createCoupon()
    {
        $data['card_type'] = $this->input->post_get('card_type');//代金券、兑换券、优惠券、折扣券
        $data['brand_name'] = $this->input->post_get('brand_name');//商户名字
        $data['title'] = $this->input->post_get('title');//卡券名
        $data['color'] = $this->input->post_get('color');//卡券颜色
        $data['notice'] = $this->input->post_get('notice');//操作提示
        $data['service_phone'] = $this->input->post_get('service_phone');//客服电话
        $data['description'] = $this->input->post_get('description');//使用须知
        $data['begin_timestamp'] = $this->input->post_get('begin_timestamp');//开始时间
        $data['end_timestamp'] = $this->input->post_get('end_timestamp');//结束时

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值