优药微信公众号服务端api
Go to file
2023-05-11 17:06:10 +08:00
app fix: depart order bug 2023-05-11 17:06:16 +08:00
bin feat: 添加生成优佳医医生群组二维码 2022-09-05 13:55:24 +08:00
config fix: fix jwt alg 2023-03-27 12:06:46 +08:00
docker fix: fix docker cmd 2022-02-21 14:27:24 +08:00
migrations fix: 扫码回调修改,部分接口根据wechat_type类型修改,errorcode文件拆分,model文件命名空间调整 2021-01-22 17:52:10 +08:00
routes Merge branch 'features/record_pharmacy_sales' into merge/merge_record_sales_master_v2 2023-04-18 10:06:30 +08:00
storage fix: monpic 2022-06-27 13:36:52 +08:00
test Merge branch 'features/record_pharmacy_sales' into merge/merge_record_sales_master 2023-04-18 09:26:14 +08:00
.drone.yml fix: fix doc 2022-03-02 17:15:18 +08:00
.env.example feat: add test upload config 2022-01-24 12:28:02 +08:00
.gitignore feat: add sync docs 2022-03-02 14:41:22 +08:00
.php_cs perf: add examples 2020-12-17 20:30:06 +08:00
.phpstorm.meta.php feat: init 2020-12-10 23:37:26 +08:00
composer.json refactor: update composer lck 2023-05-10 15:22:49 +08:00
composer.lock refactor: update composer lck 2023-05-10 15:22:49 +08:00
docker-compose.yml docs: update 2021-01-27 17:29:21 +08:00
docker-sync.yml fix: add exchange goods api 2021-01-18 17:58:16 +08:00
phpstan.neon docs: add ref example 2021-01-04 14:39:18 +08:00
phpunit.xml feat: init 2020-12-10 23:37:26 +08:00
README.md feat: init 2020-12-10 23:37:26 +08:00
t.sh feat: 添加部分数据库mode,增加问卷入口,修改基类response 2020-12-25 10:23:19 +08:00

项目概述

运行环境要求

  • PHP >= 7.2
  • Swoole PHP 扩展 >= 4.5,并关闭了 Short Name
  • OpenSSL PHP 扩展
  • JSON PHP 扩展
  • PDO PHP 扩展
  • Redis PHP 扩展
  • Protobuf PHP 扩展

开发环境部署/安装

推荐使用 Docker 安装

基础安装

1. 克隆源代码

克隆 http://yy-git.youyao99.com/youyao/wxapi.git 源代码到本地:

> git clone http://yy-git.youyao99.com/youyao/wxapi.git

2. 安装依赖包

cd wxapi
composer install -vvv

3. 修改 .env 配置

DB_DRIVER=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=hyperf
DB_USERNAME=root
DB_PASSWORD=
DB_CHARSET=utf8mb4
DB_COLLATION=utf8mb4_unicode_ci
DB_PREFIX=

REDIS_HOST=localhost
REDIS_AUTH=(null)
REDIS_PORT=6379
REDIS_DB=0

4. 启动服务

php bin/hyperf.php start