微信小程序 JavaScript 时间比较函数 JS 日期比较

// 时间比较函数
compareDate:function (startDate, endDate) {
  var arrStart = startDate.split("-");
  var startTime = new Date(arrStart[0], arrStart[1], arrStart[2]);
  var startTimes = startTime.getTime();
  var arrEnd = endDate.split("-");
  var endTime = new Date(arrEnd[0], arrEnd[1], arrEnd[2]);[......]

Read more

微信小程序实现点击滑动展开效果动画

js

let animationShowHeight = 300;
Page({

  /**
   * 页面的初始数据
   */
  data: {
    animation: ''
  },
  // 下来
  btnClick: function () {
    var animation = wx.createAnimation({
      transformOrigin: "50% 50%",
      duration: 1000,
      timingFunction: "ease",
      delay: 0[......]

Read more

微信小程序支付 记录

private $appid  = "" ;
private $secret = "";
private $mch_id = '';
private $key = '';
private $openid = '';
public function index(){
    $this->load->library('wxpay');

    $code = $this->input->post("code");
    $total_fee = $this->input->post("total_fee");
    $total_fe[......]

Read more

记录 – 测试支付宝订单回调

http://wanai.a.cc/branch/alipay_return
?body=
(房费:¥449++浪布商品:¥0+-+注册优惠:¥14+-+优惠券:¥434)
1
&buyer_email=
jollyfon%40gmail.com
&buyer_id=2088302755117180
&exterface=create_direct_pay_by_user
&is_success=T
&notify_id=RqPnCoPT3K9%252Fvwbh3Ih0HKJQ19cGsAbOdMSD7dWSs8LKeS%252BoKK[......]

Read more

微信支付 fopen(/tmp/logs/.log): failed to open stream: No such file or directory 与 curl出错,错误码:60 解决方法

调试微信支付发生错误

错误1:

A PHP Error was encountered
Severity: Warning
Message: fopen(/tmp/logs/2018-05-30.log): failed to open stream: No such file or directory
Filename: lib/log.php
Line Number: 16

解决方法:在硬盘的根目录下新建 tmp/logs/ 文件夹,不是在网站根目录下新建文件夹

错误2:

An uncaught Exception was encountered[......]

Read more