Code Monkey home page Code Monkey logo

brewlin / swoft-im Goto Github PK

View Code? Open in Web Editor NEW
202.0 202.0 60.0 1.64 MB

基于swoft-cloud的微服务架构,最小化拆分粒度,PHP7、多进程、协程、异步任务、mysql连接池、redi连接池、rpc连接池、服务治理、服务注册与发现、Aop切面、全注解

Home Page: http://im.brewlin.com

PHP 97.61% Makefile 0.18% Dockerfile 1.86% Shell 0.35%
aop async-mysql async-redis asynctask composer-package coroutines micro-service php7 pool process rpc socket-server swoft swoole tcp websocket-server

swoft-im's Issues

关于版本问题

swoole 是否支持4+?
swoft 版本看见是1.0,如果要升级,影响会有那些?

如果可以的话,可以深入沟通下,我打算升级下,涉及到的框架或是swoole使用了哪些函数,还不是很清楚。

日志打印出来了,主机能telnet容器,但是容器不能telnet宿主机

以下是打印出来的日志,代码里面服务都是使用127.0.0.1连接的,这个不用修改吧,好几天了,确实是搞不懂了
2021-03-10 16:37:32 [error] [swoft] [logid:6048854ce1df0] [spanid:0] trace[ConnectionPool.php:234,Swoft\Pool\ConnectionPool->getConnectionByChannel] Service connect fail errorCode=115 host=127.0.0.1 port=8092

关于gateway-api-cloud

我发现你把gateway-api-cloud里面的websocket模块删除了,我现在想帮你继续开发cloud的模块,当初为啥把ws删了呢。

我打算新建一个app_key表存储引用的ak和serect 然后token必须加密算法,init的时候做对称加密。

对于请求接口不能返回结果的问题如下,日志记录如下

微信截图_20210310163802

2021-03-10 16:46:43 [error] [swoft] [logid:60488773c13ee] [spanid:0] trace[ErrorHandler.php:36,Swoft\Core\ErrorHandler->handle]
{
"code": 4,
"msg": "两次密码输入不一致",
"data": [],
"statusCode": 2001,
"file": "/website/gateway-api/app/Controllers/Api/LoginController.php",
"line": 86
}

安装启动问题,求指教

您好,我按照您的步骤进行了安装 出现了一些问题:

  1. 对每个服务执行了composer install

  2. 然后对每个服务的配置文件进行了修改
    /home/www/serviceim/gateway-api/config/properties/db.php
    /home/www/serviceim/gateway-api/config/properties/cache.php
    253cc1145933ef7acf4dc58a4bf52b8
    QQ截图20190329172828

  3. 然后启动docker,我的docker 看了一下版本是1.8
    执行 docker-compose up 报错,不知道什么问题,查了百度 以为是版本问题,后来把docker-compose.yml中的版本号改成了1或者1.8 都不行!
    docer

  4. 然后启动单个服务的守护进程时 虽然都启动了 但是都有报错:
    gateway-api 启动后:
    1

然后其他服务的守护进程启动后的报错也都一样
2

另外还有个问题:
我这边 前端代码已经跑起来了,当登录的时候会访问下面这个接口进行登录,请问能否把服务端的nginx域名配置给出一份,让这边也能通过登录接口执行后端代码交互
QQ截图20190329174115

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.