mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
[更新]ComposerUpdate&修改后台图形验证码
This commit is contained in:
parent
9fc354bf8e
commit
7bb7404960
@ -45,7 +45,7 @@ class CaptchaService
|
||||
// 动态配置属性
|
||||
foreach ($config as $k => $v) if (isset($this->$k)) $this->$k = $v;
|
||||
// 生成验证码序号
|
||||
$this->uniqid = uniqid('captcha');
|
||||
$this->uniqid = uniqid('captcha') . mt_rand(1000, 9999);
|
||||
// 生成验证码字符串
|
||||
$length = strlen($this->charset) - 1;
|
||||
for ($i = 0; $i < $this->codelen; $i++) {
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit09fb67115c1225dd8c791a62882d72d6::getLoader();
|
||||
return ComposerAutoloaderInitaf543090a14d5bae306c4ccd766cf053::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit09fb67115c1225dd8c791a62882d72d6
|
||||
class ComposerAutoloaderInitaf543090a14d5bae306c4ccd766cf053
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInit09fb67115c1225dd8c791a62882d72d6
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit09fb67115c1225dd8c791a62882d72d6', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitaf543090a14d5bae306c4ccd766cf053', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit09fb67115c1225dd8c791a62882d72d6', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitaf543090a14d5bae306c4ccd766cf053', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require_once __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit09fb67115c1225dd8c791a62882d72d6::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitaf543090a14d5bae306c4ccd766cf053::getInitializer($loader));
|
||||
} else {
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInit09fb67115c1225dd8c791a62882d72d6
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit09fb67115c1225dd8c791a62882d72d6::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitaf543090a14d5bae306c4ccd766cf053::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire09fb67115c1225dd8c791a62882d72d6($fileIdentifier, $file);
|
||||
composerRequireaf543090a14d5bae306c4ccd766cf053($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire09fb67115c1225dd8c791a62882d72d6($fileIdentifier, $file)
|
||||
function composerRequireaf543090a14d5bae306c4ccd766cf053($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit09fb67115c1225dd8c791a62882d72d6
|
||||
class ComposerStaticInitaf543090a14d5bae306c4ccd766cf053
|
||||
{
|
||||
public static $files = array (
|
||||
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
||||
@ -321,9 +321,9 @@ class ComposerStaticInit09fb67115c1225dd8c791a62882d72d6
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit09fb67115c1225dd8c791a62882d72d6::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit09fb67115c1225dd8c791a62882d72d6::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit09fb67115c1225dd8c791a62882d72d6::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitaf543090a14d5bae306c4ccd766cf053::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitaf543090a14d5bae306c4ccd766cf053::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitaf543090a14d5bae306c4ccd766cf053::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -516,12 +516,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/WeOpenDeveloper.git",
|
||||
"reference": "629f14c1586ac51bdcef47b17d68a70b89d28897"
|
||||
"reference": "4d0d3c064e54556621453845fc65ba52de58a880"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/WeOpenDeveloper/zipball/629f14c1586ac51bdcef47b17d68a70b89d28897",
|
||||
"reference": "629f14c1586ac51bdcef47b17d68a70b89d28897",
|
||||
"url": "https://api.github.com/repos/zoujingli/WeOpenDeveloper/zipball/4d0d3c064e54556621453845fc65ba52de58a880",
|
||||
"reference": "4d0d3c064e54556621453845fc65ba52de58a880",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -537,7 +537,7 @@
|
||||
"php": ">=5.4",
|
||||
"zoujingli/wechat-developer": "^1.0"
|
||||
},
|
||||
"time": "2019-07-08T07:11:04+00:00",
|
||||
"time": "2019-10-10T10:18:05+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
|
@ -181,7 +181,7 @@ class Code extends BasicWeChat
|
||||
*/
|
||||
public function revertCodeRelease()
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/wxa/revertcoderelease?access_token=TOKEN';
|
||||
$url = 'https://api.weixin.qq.com/wxa/revertcoderelease?access_token=ACCESS_TOKEN';
|
||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||
return $this->httpGetForJson($url);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user