2017年8月2日
摘要: getOrder($orderId); //总价 $totalPrice = $orderDatas['nf_orderPrice']; //订单号 $orderNum = $orderDatas['nf_orderNumber']; //用户openid $openid = $_P... 阅读全文
posted @ 2017-08-02 17:02 泪滴 阅读(178) 评论(0) 推荐(0) 编辑
摘要: getAppid(); $conf['timestamp'] = time(); $conf['nonceStr'] = "Wm3WZYTPz0wzccnW"; $conf['signature'] = $this->getSignature($conf['nonceStr'],$conf['timestamp'],$url); $... 阅读全文
posted @ 2017-08-02 17:01 泪滴 阅读(184) 评论(0) 推荐(0) 编辑
摘要: getOneByOpenid($openid); if (!empty($ud)) { return $this->getData($ud); } else { //没有找到为新的用户直接保存用户的信息进数据库,然后取出返回 $userData = $t... 阅读全文
posted @ 2017-08-02 17:00 泪滴 阅读(195) 评论(0) 推荐(0) 编辑
摘要: getAccessToken(array('id' => 1)); //赋值公众号的appid和secret self::$appid = $data['nf_appid']; self::$secret = $data['nf_appsecret']; //判断数据库里值是否为空 if (empty($data['... 阅读全文
posted @ 2017-08-02 16:59 泪滴 阅读(269) 评论(0) 推荐(0) 编辑