GithubHelp home page GithubHelp logo

Comments (9)

jianyan74 avatar jianyan74 commented on May 22, 2024 2

文档那么详细都不看,真不建议你用

from rageframe2.

codetown avatar codetown commented on May 22, 2024

如果微信这块不建议用在生产环境,请标出来哦!

from rageframe2.

jianyan74 avatar jianyan74 commented on May 22, 2024

1、都可以配置,文件配置优先级大于后台配置
2、系统提供了多个获取用户信息的方式,按照自己的喜好使用
3、已经用于多个线上项目,且用的扩展在easywechat官方推荐中
4、系统所有的东西都可用于生产环境
其他:建议你不要用这个系统

from rageframe2.

codetown avatar codetown commented on May 22, 2024

文档那么详细都不看,真不建议你用

好吧是我说话太冲,我道歉,不过你代码里面有很多判空操作没处理好

from rageframe2.

jianyan74 avatar jianyan74 commented on May 22, 2024

文档那么详细都不看,真不建议你用

好吧是我说话太冲,我道歉,不过你代码里面有很多判空操作没处理好

比如?你可以直接贴代码

from rageframe2.

codetown avatar codetown commented on May 22, 2024

文档那么详细都不看,真不建议你用

好吧是我说话太冲,我道歉,不过你代码里面有很多判空操作没处理好

比如?你可以直接贴代码
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.

jianyan74 avatar jianyan74 commented on May 22, 2024

文档那么详细都不看,真不建议你用

好吧是我说话太冲,我道歉,不过你代码里面有很多判空操作没处理好

比如?你可以直接贴代码
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.

dlsyaim avatar dlsyaim commented on May 22, 2024

川哥还是这么固执。。。

from rageframe2.

codetown avatar codetown commented on May 22, 2024

川哥还是这么固执。。。
不想理你,你自己别不识趣好吧

from rageframe2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.