
微信
文章平均质量分 68
我爱吃煎饼~
这个作者很懒,什么都没留下…
展开
-
微信js支付 php
/* * 自己封装的微信js支付 *ci框架 */ public function wxPay($openid,$price,$order,$body) { $opts = [ 'appid' => $this->config->item('appid'),//appid 'mch_id' => $this->...原创 2018-03-15 11:50:59 · 383 阅读 · 0 评论 -
微信h5支付 php
/** * 微信h5支付 */ public function wxh5Pay($price,$order,$body) { $opts = [ 'appid' => $this->config->item('appid'),//appid 'mch_id' => $this-&g...原创 2018-03-15 11:59:08 · 521 阅读 · 0 评论 -
微信扫码支付 php
//微信扫码支付public function wxPay_native($price,$order,$body) { $opts = [ 'appid' => $this->config->item('appid'),//appid 'mch_id' => $this->config->item(...原创 2018-03-15 12:07:39 · 234 阅读 · 0 评论 -
后端收不到微信小程序wx.request的传值问题 php
wx.request({ url: 'test.php', //仅为示例,并非真实的接口地址 data: { x: '' , y: '' }, header: { 'content-type': 'application/json' // 默认值 }, success: function(res) { console.log(res....原创 2018-03-26 11:11:17 · 3263 阅读 · 0 评论 -
本地缓存token php
//获取token public function getToken() { $appid = $this->config->item('appid'); $secret = $this->config->item('secret'); $url = "https://api.weixin.qq.com/cgi-bin/...原创 2018-05-11 18:01:22 · 1410 阅读 · 0 评论 -
微信卡券上传logo素材 php
//获取token public function getToken() { $appid = $this->config->item('appid'); $secret = $this->config->item('secret'); $url = "https://api.weixin.qq.com/cgi-bin/...原创 2018-05-11 18:06:32 · 1374 阅读 · 0 评论 -
微信卡券导入自定义code码 php
首先大体思路是这样的: 先创建一个卡券,注意自定义创建的卡券有三个参数是不一样的 quantity 为0 库存 use_custom_code 为true 是否自定义Code码 get_custom_code_mode 为 GET_CUSTOM_CODE_MODE_DEPOSIT 卡券为预存code模式卡券 创建成功后导入...原创 2018-06-07 17:22:47 · 2897 阅读 · 1 评论 -
创建微信卡券 php
public function createCoupon() { $data['card_type'] = $this->input->post_get('card_type');//代金券、兑换券、优惠券、折扣券 $data['brand_name'] = $this->input->post_get('brand_name');//商户...原创 2018-06-07 17:46:06 · 2859 阅读 · 1 评论