基于小拼团,自主版权,二次开发,laravel + uniapp,采用前后端分离架构,安全性 (JWT 校验、中间件、验证器、路由、异常处理、权限控制)
移动端:http://app-know-oss-h5.notestore.cn
后端:http://know.store.notestore.cn/admin 账号:18867792670 密码:123456
### 安装方法
1. 创建MYSQL数据库,导入小拼知识商店.sql
2. 把根目录的 config.example 文件名改成 config
3. 修改 .env 配置 APP_URL WEB_NAME DB_开头的配置
4. 设置 public 目录作为 web 目录访问内容
5. 后台入口 你的网址/admin
6. 后台帐号密码 admin 123456
### 重置密码
INSERT INTO `users` (`id`, `username`, `email`, `mobile`, `sex`, `password`, `remember_token`, `created_at`, `updated_at`, `system_user_id`, `shop_name`, `shop_logo`) VALUES
(1, 'admin', 'admin@localhost.com', '12345678909', 1, '$2y$10$p7ynYlhuSZ9v8P1WlohSpugGO5EjNGAQhINqugIrJyRPo93xP9.82', 'X72r1eeTv7aYt3hwp8dWGeQWJwIlJPmCrULj7QxGvRvpb9WRjsZG9uh2Orzl', '2019-01-09 09:41:49', '2022-03-26 20:27:57', 1, NULL, NULL),
(2, '18867792670', '18867792670@qq.com', '18867792670', 1, '$2y$10$hGZRx3mbnYNKgAztmIEZBugpDWeRe3/0.O9u8Sx2s2id3Z1bWSYUO', 'LCrce1lk1UzRTx3NTVjLpwa5dwyHKaL9dWsyeBHVO5yACBBdExzN7nW26vHS', '2019-01-12 12:13:04', '2019-02-26 15:45:19', 1, NULL, NULL);
### nginx参考
server {
listen 80;
root /www/web/w6_pintuan_xcx_cn/public;
server_name test.pintuan-xcx.cn;
index index.html index.php index.htm;
location ~ .php(.*)$ {
fastcgi_pass unix:/tmp/php-71-cgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $DOCUMENT_ROOT$fastcgi_script_name;
fastcgi_param PATH_INFO $2;
include fcgi.conf;
}
location ~ /.ht {
deny all;
}
location / {
#try_files $uri $uri/ /?$args;
try_files $uri $uri/ /index.php?$query_string;
}
}
### 安装依赖
由于众所周知的原因,国外的网站连接速度很慢。因此安装的时间可能会比较长,我们建议使用国内镜像 (阿里云)。
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
根目录执行
composer install
### 生成APP_KEY
根目录执行,如果已经有的就不需要生成了
php artisan key:generate
php artisan config:clear
### linux权限
chmod -R 0777 storage
chmod -R 0777 config
### H5端配置
1.创建H5端工程,并用 HBuilder X,打开项目
2.把根目录的request.js .bak文件名改成request.js
3.配置 request.js baseApiUrl并将修改成自己域名 https://domain.cn/