- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 PHP 微信小程序生成二维码
直接贴源码 (使用场景微信的getwxacodeunlimit接口) private $appid = 微信的appid; private $secret = ''; //获取access_token public function get_access_token($state){ $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&a...
2020-07-25 17:05:32
47
原创 tp3.2增加集成第三方融云
//TP3.2使用融云第三方类生成融云TOKEN //1.下载地址 https://github.com/rongcloud/server-sdk-php //2.类存放地址 //3.控制器层进行引入 vendor('RongCloud.API.RongCloud','','.php'); //引入融云第三方类 //4.生成唯一融云TOKEN $appKey = '********'; //融云官方注册的key $appSecret = '********'; //融..
2020-06-12 16:06:24
64
1
原创 针对tp3.2数据库基础操作
查询单条数据 $where = array('user_token' => $token); //条件 $str = M('merchant_user')->where($where)->find(); // 根据条件查询出M出的表中单个信息 多表联查(distinct()去除当前字段中重复数据保留一个) $where = array("user_id" => $user_id , "state" => '1'); $data = M('commod...
2020-06-12 16:00:16
36
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝