微网站微信带图片/描述分享微信分享页面 页面js wx.config({ debug: false, appId: '{$signPackage["appId"]}', timestamp: '{$signPackage["timestamp"]}', nonceStr: '{$signPackage["nonceStr"]}', signature: '{$signPackage[2018-05-24浏览 5177
资源分享 | 男士个人形象班VIP录播课程 http://bbs.wangmingchang.com/forum.php?mod=viewthread&tid=67&page=1&extra=#pid3622018-04-29浏览 3308
用php的chr和ord函数实现字符串和ASCII码互转参考网站 https://blog.csdn.net/bytxl/article/details/17223211 2018-04-18浏览 4191
微信支付学习笔记(三)扫码支付/查询/退款统一下单 必填参数 https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1 下单成功后使用异步回调修改订单状态 扫描支付页面(修改) $input->SetNotify_url("http://www.wangmingchang.com/example/notify.php") 在logs中2018-04-17浏览 3142
微信支付学习笔记(二)微信支付操作下载官方demo https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=11_1 配置商户信息 lib/Wxpay.config.php 在index.php中修改域名 3.修改example/native.php中的域名 2018-04-16浏览 3864
微信支付学习笔记(一)基础准备: 1.认证的服务号 https://mp.weixin.qq.com/ 2.企业营业执照以及对公账号 3.已备案的域名和服务器 过程: 1.开通微信支付 2.开通商户平台 https://pay.weixin.qq.com 支付: 公众号支付 app支付 扫码支付 https://pay.weixin.qq.com/guide/webbased_pay2018-04-16浏览 2883
tp5+小程序开发笔记(六)在application/extra下的配置文件都会被tp5自动加载 新建setting.php return[ 'img_prefix'=>'http://wmc.com/images' ] 使用模型的获取器拼接图片路径 tp5中只有public是公开的 public/images/1,jpg config('配置文件.配置名称'); $a = confi2018-04-15浏览 3878
tp5+小程序开发笔记(五)数据库操作设置带版本号的路由 Route::get('api/v1/banner/:id','api/v1.banner/getBanner'); 1.tp5原生sql use think\Db; Db::query("select * from user where id=?",[$id]); 2.查询构建器 Db::table('user')->where('id2018-04-15浏览 4508
tp5+小程序开发笔记(四)异常处理1.捕获异常 2.处理异常(记录日志 或者 修复异常 或者 返回客户端) 3.抛出异常 try{ $banner = ..... }catch(Exception $ex) { $err = [ 'error_code=>'10001, 'msg'=>$ex->getMessage() ]; return json($err,400); } 200是正确获得2018-04-15浏览 4489