仓库-

cqy ed0d51d2b3 优化 2 months ago
application ed0d51d2b3 优化 2 months ago
bash df4bc21b81 [update] 更新readme 5 months ago
cli_runtime 0c3b9506bc init 5 months ago
extend 0c3b9506bc init 5 months ago
public a26c3599b6 优化 2 months ago
runtime 0c3b9506bc init 5 months ago
test 0c3b9506bc init 5 months ago
.DS_Store 0c3b9506bc init 5 months ago
.env.example 68b58a12b3 [update] 更新readme 5 months ago
.gitignore 0c3b9506bc init 5 months ago
LICENSE 0c3b9506bc init 5 months ago
README.md 61a83c2c88 [update] 更新readme 5 months ago
composer.json 61a83c2c88 [update] 更新readme 5 months ago
composer.lock 8d47f855d5 [update] 更新readme 5 months ago
phpdoc.bat 0c3b9506bc init 5 months ago
phpunit.xml 0c3b9506bc init 5 months ago
resp.log 0c3b9506bc init 5 months ago
think 0c3b9506bc init 5 months ago
time.php de56d61878 订单管理 4 months ago
update.sh 0c3b9506bc init 5 months ago

README.md

tbk_api

TODO

测试

  1. 通过hosts文件进行,可解决同域名不同代码 (方便开发人员测试)
  2. 系统中涉及跟域名的,全都采用全局变量,然后进行.env进行配置,解决不同域名不同代码

  3. 选品库同步

初始化项目

composer install

如果缺少mbstring, bcmath

在ubuntu 16下,php 7.0 环境下

apt install php7.0-mbstring
apt install php7.0-bcmath

项目文件夹权限

chmod 777 ./public/uploads chmod 777 ./runtime

test 文件夹 (依赖 thinkphp的 phpunit )

php think unit 

tbk

api test html address

测试环境下

正则收集

  1. 密码(非空白字符8-24位) /^\S{8,24}$/