thinkphp5 框架修改的地方

框架修改的地方

vendor/topthink/think-captcha/src/Captcha.php

api验证码入库
196行
$img_code = strtoupper(implode('', $code));
$model = new \app\common\model\ComCodeimg();
$model->saveCode($img_code,input('id'));

thinkphp/library/think/Validate.php

配合前端js, 写session
445行添加
session('js.name',$key);

去掉curl

posted @ 2018-01-12 09:53  geek程序员  阅读(198)  评论(0编辑  收藏  举报