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');//结束时
创建微信卡券 php
最新推荐文章于 2021-03-25 17:17:33 发布
这篇博客介绍了如何使用PHP创建微信卡券,包括设置卡券类型、商户名称、标题、颜色、提示信息、客服电话、使用须知以及有效期等关键参数。通过couponDo函数处理POST请求的数据,并调用微信API来生成卡券。
摘要由CSDN通过智能技术生成