kwin / wechat-admin
laravel admin wchat
dev-master
2021-03-24 06:01 UTC
Requires
- php: >=7.0.0
- dianwoung/large-file-upload: ^0.0.3
- laravel/helpers: ^1.1
- overtrue/laravel-wechat: ^5.0
- smallruraldog/light-box: ^1.0
This package is auto-updated.
Last update: 2025-02-24 14:48:26 UTC
README
基于laravel admin做的微信公众号管理后台
安装
composer require kwin/wechat-admin php artisan wechatAdmin:install
#使用
配置.env
WECHAT_OFFICIAL_ACCOUNT_APPID=开发者ID(AppID)
WECHAT_OFFICIAL_ACCOUNT_SECRET=开发者密码(AppSecret)
WECHAT_OFFICIAL_ACCOUNT_TOKEN=令牌(Token)
WECHAT_OFFICIAL_ACCOUNT_AES_KEY=消息加解密密钥(EncodingAESKey)
鉴权 获取code
- 请求获取code地址 跳转地址:/wechat/authorize?redirect_uri="+escape("http://xxx")
http://xxx 表示当前页面地址
- 启动
wechat
中间件组,即可自动保存微信用户信息
服务器配置
服务器地址(URL)配置为{网址地址}/wechat