Coder Social home page Coder Social logo

用中间件获取保存在sessions的user->original中用户所在城市、国家、省份信息没有语言版本设置 about laravel-wechat HOT 3 CLOSED

overtrue avatar overtrue commented on July 19, 2024
用中间件获取保存在sessions的user->original中用户所在城市、国家、省份信息没有语言版本设置

from laravel-wechat.

Comments (3)

overtrue avatar overtrue commented on July 19, 2024

overtrue/socialite@e749ea0

@almas1992 请使用 dev-master 版本进行测试,如果没问题请回复,谢谢!

from laravel-wechat.

almas1992 avatar almas1992 commented on July 19, 2024

@overtrue

composer require overtrue/socialite:dev-master

后测试一下,user->original 中相关信息是中文了,谢谢;

要是更改lang参数只能在
https://github.com/overtrue/wechat/blob/master/src/Foundation/ServiceProviders/OAuthServiceProvider.php#L56
中是使用with方法来更改么?比如:

$socialite = (new Socialite(
                [
                    'wechat' => [
                        'open_platform' => $pimple['config']['open_platform'],
                        'client_id' => $pimple['config']['app_id'],
                        'client_secret' => $pimple['config']['secret'],
                        'redirect' => $callback,
                    ],
                ]
            ))->driver('wechat')->with(['lang'=>'en']);

from laravel-wechat.

overtrue avatar overtrue commented on July 19, 2024

@almas1992 嗯,对的

from laravel-wechat.

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.