Comments (9)
文档那么详细都不看,真不建议你用
from rageframe2.
如果微信这块不建议用在生产环境,请标出来哦!
from rageframe2.
1、都可以配置,文件配置优先级大于后台配置
2、系统提供了多个获取用户信息的方式,按照自己的喜好使用
3、已经用于多个线上项目,且用的扩展在easywechat官方推荐中
4、系统所有的东西都可用于生产环境
其他:建议你不要用这个系统
from rageframe2.
文档那么详细都不看,真不建议你用
好吧是我说话太冲,我道歉,不过你代码里面有很多判空操作没处理好
from rageframe2.
文档那么详细都不看,真不建议你用
好吧是我说话太冲,我道歉,不过你代码里面有很多判空操作没处理好
比如?你可以直接贴代码
from rageframe2.
文档那么详细都不看,真不建议你用
好吧是我说话太冲,我道歉,不过你代码里面有很多判空操作没处理好
比如?你可以直接贴代码
common\components\WechatLoginTrait.php文件下
if (in_array('snsapi_base', Yii::$app->params['wechatConfig']['oauth']['scopes']))
{
return false;
}
如果Yii::$app->params['wechatConfig']['oauth']['scopes']不是数组,或者为空,yii就会报错
我昨天调试代码,到这边报错,我才发现这个问题的。其他地方也有类似的
from rageframe2.
文档那么详细都不看,真不建议你用
好吧是我说话太冲,我道歉,不过你代码里面有很多判空操作没处理好
比如?你可以直接贴代码
common\components\WechatLoginTrait.php文件下
if (in_array('snsapi_base', Yii::$app->params['wechatConfig']['oauth']['scopes']))
{
return false;
}
如果Yii::$app->params['wechatConfig']['oauth']['scopes']不是数组,或者为空,yii就会报错
我昨天调试代码,到这边报错,我才发现这个问题的。其他地方也有类似的
正常是不会报错的,因为在启动的时候已经自动赋值了该变量,除非你自己又去重新改动了这个变量,你自己可以在框架启动的时候直接打印Yii::$app->params['wechatConfig'],不要去重新赋值
from rageframe2.
川哥还是这么固执。。。
from rageframe2.
川哥还是这么固执。。。
不想理你,你自己别不识趣好吧
from rageframe2.
Related Issues (20)
- 设置站点后会出现个别样式加载 404
- 微客服插件
- 前台 HOT 3
- 在后台端和商户端生成的HTML5地址时URL美化规则未生效
- Who to contact for security issues HOT 3
- Has rageframe2 been used in production? HOT 2
- Reflective Cross Site Scripting at info.php HOT 4
- Hope to add examples of pseudo-static or caddyfile configuration for Caddy2 HOT 1
- 这是写了个什么玩意
- The RfExample plug-in has a remote code execution vulnerability HOT 1
- 插件安装建议 HOT 7
- 请问如何设置图片上传到七牛云或者腾讯云等存储 HOT 1
- 执行 php composer.phar install时卡死 HOT 2
- 基于此项目开发的平台和线下机器交互报错 mb_strlen() expects parameter 1 to be string, array given HOT 2
- 如果后台能做成前后端分离用vue就完美了 HOT 1
- 新装插件权限问题 HOT 2
- 部署方式 HOT 1
- 会考虑浏览器的支付吗? HOT 2
- 关于微信公众号插件获取用户列表的问题 HOT 3
- 执行`php ./yii migrate/up`报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rageframe2.