![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微擎
最努力奔跑
这个作者很懒,什么都没留下…
展开
-
微擎原生上传文件
load()->func('file'); //调用上传函数 $dir_url='../attachment/mytime_chdb/cert_2/'.$_W['uniacid']."/"; //上传路径 mkdirs($dir_url); //创建目录 $cfg['rootca']=$_GPC['rootca2']; //接受参数 $cfg['apiclient_cert']=$_GPC原创 2017-06-24 09:26:59 · 5147 阅读 · 0 评论 -
微擎 用户是否已关注公众号
if(empty($_W['openid'])||$_W['fans']['follow']!=1){ message( '请先关注公众号!', '', 'error' ); } 当$_W['openid']为空时, $_W['fans']['follow'] 等于0是没有关注 等于1是已经关注 follow是关注的意思 没有关注的话可以设置一个跳转链接。原创 2017-06-27 11:56:18 · 3097 阅读 · 1 评论 -
微擎receiver.php关注事件
class Delete_gjzhbModuleReceiver extends WeModuleReceiver { public function receive() { $type = $this->message['type'];//类型 $event = $this->message['event']; if (($event == 'subscribe') &...原创 2018-02-24 16:00:22 · 3426 阅读 · 0 评论 -
微擎验证自带验证码
<form id="form" action="" method="post"> <div class="form-group"> <input name="code" type="text" class="form-control" placeholder="请输入验证码&qu原创 2018-03-13 14:17:15 · 4921 阅读 · 0 评论