随笔分类 -  API

各类接口的调用代码
摘要:傻瓜一键生成代码:http://api.map.baidu.com/lbsapi/creatmap/ 百度地图API开发文档:http://lbsyun.baidu.com/index.php?title=jspopular3.0 阅读全文
posted @ 2019-07-04 14:35 落华 阅读(17) 评论(0) 推荐(0)
摘要://公众号分享 public function index() { global $oid; $url = input('url'); $oid = input('oid'); $wxGzhAppid = PayConfig::get_wx_config_info('wxGzhAppid', $oid); $wxGzhS... 阅读全文
posted @ 2019-05-29 10:40 落华 阅读(194) 评论(0) 推荐(0)
摘要:1 先去微信公众平台,选择现有模板,会有一个模板编号,模板中没有的关键词,可以申请新增。 微信公众平台直达:https://mp.weixin.qq.com 模板消息对应文档直达:https://developers.weixin.qq.com/miniprogram/dev/framework/o 阅读全文
posted @ 2019-05-29 10:37 落华 阅读(1014) 评论(0) 推荐(0)
摘要:一 . 小程序提现到零钱的官方文档,建议先看下,再看下面的代码 地址:https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_1 付款规则: 调用接口所需参数,除下图中所需参数外,还需要小程序的支付key,证书。这两样在 阅读全文
posted @ 2019-05-29 10:33 落华 阅读(7964) 评论(2) 推荐(1)
摘要:/** * 将xml转为array * @param string $xml xml字符串 * @return array 转换得到的数组 */ public function xml2array($xml) { //禁止引用外部xml实体 libxml_disable_entity_loader(false); $result = json_dec... 阅读全文
posted @ 2019-05-29 10:19 落华 阅读(493) 评论(0) 推荐(0)
摘要:$appid, //appid T 'mch_id' => $mchid, //商户号T 'nonce_str' => $nonce_str, 'body' => '可待商城系统-商品购买', //商品信息 'out_trad... 阅读全文
posted @ 2019-05-29 10:14 落华 阅读(305) 评论(0) 推荐(0)
摘要:public function http_get($url){ $ch = curl_init($url); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0); cu... 阅读全文
posted @ 2019-05-28 17:54 落华 阅读(243) 评论(0) 推荐(0)
摘要:一、设置支付目录 请确保实际支付时的请求目录与后台配置的目录一致(现在已经支持配置根目录,配置后有一定的生效时间,一般5分钟内生效),否则将无法成功唤起微信支付。 在微信商户平台(pay.weixin.qq.com)设置您的JSAPI支付支付目录,设置路径:商户平台-->产品中心-->开发配置,如图 阅读全文
posted @ 2019-05-28 17:50 落华 阅读(464) 评论(0) 推荐(0)