grantCoupon([ 'merchant_id' => self::$merchant_id, 'coupon_id' => I('post.id'), 'openid' => self::$user['openid'], 'service_openid' => self::$user['service_openid'], 'ordinary_openid' => self::$user['ordinary_openid'], 'uid' => self::$uid, 'vip_id' => self::$user['vid'], 'receive_store_id' => self::$store_id ]); $this->ajaxReturn($result); } /** * 代金券详情 */ public function couponInfo() { $PayCouponClass = new PayCoupon(); $result = $PayCouponClass->couponInfo([ 'id' => I('post.id'), 'uid' => self::$uid ]); $this->ajaxReturn($result); } /** *用户的代金券列表 */ public function userPayCouponList() { $data = I("post."); $PayCouponClass = new PayCoupon(); $result = $PayCouponClass->userPayCouponList($data); $this->ajaxReturn($result); } }