- 博客(0)
- 资源 (4)
- 收藏
- 关注
xxx is not in the sudoers file解决方法
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。
2012-02-24
WeixinTemplate.php
微信公众号模板消息,适用于thinkphp5.0。
将文件放在extend文件夹下。
在公共contorller加入以下代码;
//调用模板消息拓展
public function WeixinTemplate($openid,$template_id,$url,$data){
import("WeixinTemplate",EXTEND_PATH);
$this->weixinJSSDK();
$SendTemplate = new \WeixinTemplate($this->getWeiXinJsApi->getAccessToken());
$SendTemplate->template($openid,$template_id,$url,$data);
$SendTemplate->SendTemplatMessage();
}
在需要调用的使用
$this->WeixinTemplate($user->openid,$template_id,$TemplateUrl,$data);
直接调用。
2019-07-24
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝