hero

店滴云开发者手册

针对酒店、民宿、公寓场所的软硬件解决方案

集团化

面向集团化组织架构,满足子公司之间业务交叉,数据汇总,数据共享和独立处理可灵活配置。

多插件

不同业务数据共享独立管理,每个插件都是独立的,插件之间可以通过事件驱动的方式进行数据交互,业务共享。

硬能力

对接各种硬件的协议处理能力,支持tcp/mqtt/udp等多种通信协议,官方提供了智能家居相关的sdk和接口。

物联网

经营性场所进行物联网改造。同时支持多种物联网通信协议,开放有关的sdk供开发者使用。

真开源

店滴云基于php开放,代码无加密,全面开源。需要保留版权信息,遵循Apache2.0协议。邀请开放者参与。

高性能

深度集成swoole,可以使用其http服务进行数据输出。独立业务也可以独立启用swoole,独享端口,

# 环境准备:

Php>=7.4
Redis 7.0.0
MySQL 5.6.50

# 第一步:git 下载代码

git clone https://gitee.com/wayfirer/ddicms.git

# 第二步:composer 扩展安装

cd ddicms
php composer.phar install

# 第三步:配置安装信息

console\config\install.php


return [
    // 数据库配置
    'host' => '127.0.0.1',
    'port' => '3306',
    'tablePrefix' => 'dd_',
    'dbname' => '',
    'dbusername' => '',
    'dbpassword' => '',
    // 管理员配置
    'username' => '',
    'userpassword'=>'',    
    'mobile' => '',
    'email' => '',
];


# 第四步:执行安装命令

说明:提醒输入数据库版本,请输入:1.0.0


php ./yii install


# 第五步:Nginx 部署配置

server {
        listen        80;
        server_name  www.ai.com;
        root   "ddicms/frontend";
        add_header Access-Control-Allow-Origin *;
        add_header Access-Control-Allow-Headers X-Requested-With,Authorization,Content-Type,access-token,bloc-id,store-id;
        add_header Access-Control-Allow-Methods GET,POST,OPTIONS,PUT,DELETE;
        location / {
            index index.php index.html error/index.html;
            error_page 400 /error/400.html;
            error_page 403 /error/403.html;
            error_page 404 /error/404.html;
            error_page 500 /error/500.html;
            error_page 501 /error/501.html;
            error_page 502 /error/502.html;
            error_page 503 /error/503.html;
            error_page 504 /error/504.html;
            error_page 505 /error/505.html;
            error_page 506 /error/506.html;
            error_page 507 /error/507.html;
            error_page 509 /error/509.html;
            error_page 510 /error/510.html;
            include D:/www/firetech/frontend/web/nginx.htaccess;
            autoindex  off;
        }
        location ~ \.php(.*)$ {
            fastcgi_pass   127.0.0.1:9001;
            fastcgi_index  index.php;
            fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  PATH_INFO  $fastcgi_path_info;
            fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
            include        fastcgi_params;
        }
        
        location /admin {
            index index.php index.html;
            if (!-e $request_filename)
            {
                rewrite ^/admin/(.*)$ /admin/index.php last;
            }
        }
        
        location /api {
            index index.php index.html;
            if (!-e $request_filename)
            {
                rewrite ^/api/(.*)$ /api/index.php last;
            }
            if (!-f $request_filename){
                set $rule_0 1$rule_0;
            }
        }
}


# 特别鸣谢

感谢以下的项目,排名不分先后

  • Yii:http://www.yiiframework.com

  • EasyWechat:https://www.easywechat.com

  • Vue: https://vuejs.org/

  • vue-ele-form: https://github.com/dream2023/vue-ele-form

  • element-ui: https://element.eleme.cn/