1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-23 03:50:56 +08:00

更新readme

This commit is contained in:
xiaochong0302 2020-09-04 14:25:58 +08:00
parent fcfb8aaec3
commit 4c8d02fcf2
3 changed files with 29 additions and 19 deletions

View File

@ -6,6 +6,8 @@
都有些什么功能?我也不想写一大堆,自己体验吧! 都有些什么功能?我也不想写一大堆,自己体验吧!
PS**系统后台已禁止提交并隐藏私人配置**
- [前台演示](https://ctc.koogua.com) - [前台演示](https://ctc.koogua.com)
- [后台演示](https://ctc.koogua.com/admin) - [后台演示](https://ctc.koogua.com/admin)
- [系统截图](https://gitee.com/koogua/course-tencent-cloud/wikis/系统截图) - [系统截图](https://gitee.com/koogua/course-tencent-cloud/wikis/系统截图)
@ -29,15 +31,14 @@
#### 会推出商业服务吗? #### 会推出商业服务吗?
如果不符合您对“开源”的认知,请移步其它同类产品,毕竟同类“免费”产品也很多。 - 如果不符合您对“开源”的认知,请移步其它同类产品,毕竟同类“免费”产品也很多。
- 如果“开源”版本不能满足您的需求,或者您更希望有更好的支持,商业服务是不错的选择。
如果“开源”版本不能满足您的需求,或者您更希望有更好的支持,商业服务是不错的选择。
我们目前提供的服务: 我们目前提供的服务:
1. 安装服务 - 安装服务
2. 会员服务 - 会员服务
3. 定制服务 - 定制服务
#### 会有阿里云版吗? #### 会有阿里云版吗?
@ -61,10 +62,15 @@
- 移动端:待启动 - 移动端:待启动
- 小程序:待启动 - 小程序:待启动
#### 意见反馈
- [在线反馈](https://gitee.com/koogua/course-tencent-cloud/issues)
- QQ邮箱: 76632555@qq.com
- QQ群组: 787363898
#### 加入我们 #### 加入我们
这是我的创业项目,个人能力和精力有限,要兼顾产品规划以及开发,还要处理除报税记账之外的所有琐碎事情。 这是我的创业项目,个人能力和精力有限,要兼顾产品规划以及开发,还要处理除报税记账之外的所有琐碎事情。
目前在南山科技园某个众创空间,希望有能独挡一面的**深圳前端同学**加入我们。
目前在南山科技园这边,希望有能独挡一面的**深圳前端同学**加入我们。 联系邮箱76632555@qq.com
联系邮箱xiaochong0302@qq.com

View File

@ -4,6 +4,7 @@ namespace App\Providers;
use Phalcon\Annotations\Adapter\Memory as MemoryAnnotations; use Phalcon\Annotations\Adapter\Memory as MemoryAnnotations;
use Phalcon\Annotations\Adapter\Redis as RedisAnnotations; use Phalcon\Annotations\Adapter\Redis as RedisAnnotations;
use Phalcon\Config;
class Annotation extends Provider class Annotation extends Provider
{ {
@ -12,20 +13,23 @@ class Annotation extends Provider
public function register() public function register()
{ {
$this->di->setShared($this->serviceName, function () { /**
* @var Config $config
*/
$config = $this->di->getShared('config');
$config = $this->getShared('config'); $this->di->setShared($this->serviceName, function () use ($config) {
if ($config->env == ENV_DEV) { if ($config->get('env') == ENV_DEV) {
$annotations = new MemoryAnnotations(); $annotations = new MemoryAnnotations();
} else { } else {
$annotations = new RedisAnnotations([ $annotations = new RedisAnnotations([
'host' => $config->redis->host, 'host' => $config->path('redis.host'),
'port' => $config->redis->port, 'port' => $config->path('redis.port'),
'auth' => $config->redis->auth, 'auth' => $config->path('redis.auth'),
'index' => $config->annotation->db, 'index' => $config->path('annotation.db'),
'lifetime' => $config->annotation->lifetime, 'lifetime' => $config->path('annotation.lifetime'),
'statsKey' => $config->annotation->statsKey, 'statsKey' => $config->path('annotation.statsKey'),
]); ]);
} }

View File

@ -8,7 +8,7 @@ interface ProviderInterface extends InjectionAwareInterface
{ {
/** /**
* RegisterByPhone application service. * Register application service.
* *
* @return mixed * @return mixed
*/ */