mercycloudteam / tomatoidc Goto Github PK
View Code? Open in Web Editor NEWTomatoIDC/HStack是一款以MIT协议开源销售系统,具备易于扩展的插件系统,模版系统,使用强大的Laravel框架进行驱动,能帮助你轻松的扩展业务。
License: MIT License
TomatoIDC/HStack是一款以MIT协议开源销售系统,具备易于扩展的插件系统,模版系统,使用强大的Laravel框架进行驱动,能帮助你轻松的扩展业务。
License: MIT License
宝塔面板
PHP版本是宝塔里的7.3
composer版本为2.1.5
已经删除了passthru
proc_open
proc_get_status
的函数限制
执行composer install --no-dev
后提示
[root@new capsule]# composer install --no-dev
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- easywechat-composer/easywechat-composer is locked to version 1.1.4 and an update of this package was not requested.
- easywechat-composer/easywechat-composer 1.1.4 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
Problem 2
- easywechat-composer/easywechat-composer 1.1.4 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
- overtrue/wechat 4.1.15 requires easywechat-composer/easywechat-composer ^1.1 -> satisfiable by easywechat-composer/easywechat-composer[1.1.4].
- overtrue/wechat is locked to version 4.1.15 and an update of this package was not requested.
我根据提示执行了composer升级
[root@new capsule]# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires arcanedev/log-viewer ^4.6, found arcanedev/log-viewer[4.6.3] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 2
- Root composer.json requires beyondcode/laravel-self-diagnosis ^1.0, found beyondcode/laravel-self-diagnosis[1.0.2] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 3
- Root composer.json requires fideloper/proxy ^4.0, found fideloper/proxy[4.0.0] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 4
- Root composer.json requires guzzlehttp/guzzle ^6.3, found guzzlehttp/guzzle[6.3.3] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 5
- Root composer.json requires intervention/image ^2.4, found intervention/image[2.4.2] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 6
- Root composer.json requires johnlui/aliyun-oss ~2.0, found johnlui/aliyun-oss[v2.2.1] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 7
- Root composer.json requires laravel/framework 5.7.*, found laravel/framework[v5.7.19] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 8
- Root composer.json requires laravel/scout ^6.1, found laravel/scout[v6.1.3] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 9
- Root composer.json requires laravel/tinker ^1.0, found laravel/tinker[v1.0.8] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 10
- Root composer.json requires overtrue/easy-sms ^1.1, found overtrue/easy-sms[1.1.7] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 11
- Root composer.json requires overtrue/laravel-lang ~3.0, found overtrue/laravel-lang[3.0.13] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 12
- Root composer.json requires overtrue/laravel-mail-aliyun dev-master, found overtrue/laravel-mail-aliyun[dev-master] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 13
- Root composer.json requires overtrue/laravel-wechat ~4.0, found overtrue/laravel-wechat[4.0.22] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 14
- Root composer.json requires overtrue/laravel-youzan ^2.0, found overtrue/laravel-youzan[2.0.1] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 15
- Root composer.json requires rachidlaasri/laravel-installer ^4.0, found rachidlaasri/laravel-installer[4.0.2] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 16
- Root composer.json requires simplesoftwareio/simple-qrcode ~2, found simplesoftwareio/simple-qrcode[2.0.0] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 17
- Root composer.json requires thomaswelton/laravel-gravatar ~1.0, found thomaswelton/laravel-gravatar[1.1.3] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 18
- Root composer.json requires yansongda/laravel-pay ^2.0, found yansongda/laravel-pay[v2.0.2] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 19
- Root composer.json requires ybr-nx/laravel-mariadb ^1.0, found ybr-nx/laravel-mariadb[1.0.18] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 20
- Root composer.json requires beyondcode/laravel-dump-server ^1.0, found beyondcode/laravel-dump-server[1.2.2] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 21
- Root composer.json requires filp/whoops ^2.0, found filp/whoops[2.3.1] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 22
- Root composer.json requires fzaninotto/faker ^1.4, found fzaninotto/faker[v1.8.0] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 23
- Root composer.json requires mockery/mockery ^1.0, found mockery/mockery[1.2.0] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 24
- Root composer.json requires nunomaduro/collision ^2.0, found nunomaduro/collision[v2.1.1] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 25
- Root composer.json requires phpunit/phpunit ^7.0, found phpunit/phpunit[7.5.1] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 26
- Root composer.json requires barryvdh/laravel-debugbar ^3.2, found barryvdh/laravel-debugbar[v3.2.1] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
PHP版本为7.3.4
composer为2.1.5
D:\>cd TomatoIDC-0.1.8
D:\TomatoIDC-0.1.8>composer install --no-dev
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- easywechat-composer/easywechat-composer is locked to version 1.1.4 and an update of this package was not requested.
- easywechat-composer/easywechat-composer 1.1.4 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
Problem 2
- easywechat-composer/easywechat-composer 1.1.4 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
- overtrue/wechat 4.1.15 requires easywechat-composer/easywechat-composer ^1.1 -> satisfiable by easywechat-composer/easywechat-composer[1.1.4].
- overtrue/wechat is locked to version 4.1.15 and an update of this package was not requested.
求助大佬!!!
万分感谢!!!
$user->name == $request['name'] ?: User::where('id', $request['id'])->update(['name' => $request['name']]);
$user->qq == $request['qq'] ?: User::where('id', $request['id'])->update(['qq' => $request['qq']]);
$user->phone == $request['phone'] ?: User::where('id', $request['id'])->update(['phone' => $request['phone']]);
$user->signature == $request['signature'] ?: User::where('id', $request['id'])->update(['signature' => $request['signature']]);
$user->account == $request['account'] ?: User::where('id', $request['id'])->update(['account' => $request['account']]);
为何分开更新信息?
我没部署项目运行,所以不知道是不是一次操作只能更改一条信息.....
要是同时更新qq,phone,signature,account 岂不是执行四条update sql语句?
希望作者能加入AFF
Error
操作失败
环境Apache2.4 + PHP7.2 + MySQL5.5
也尝试了Nginx1.16 + Mariadb10.3 + PHP7.3
版本0.1.18
在数据库导入之后填写管理员信息进入/install/init时报错
(2/2) QueryExceptionSQLSTATE[23000]: Integrity constraint violation: 1048 Column 'value' cannot be null (SQL: insert into
settings (
name,
value,
updated_at,
created_at) values (setting.website.payment.alipay, , 2019-10-24 22:28:23, 2019-10-24 22:28:23)) in Connection.php line 664 at Connection->runQueryCallback('insert into
settings (
name,
value,
updated_at,
created_at) values (?, ?, ?, ?)', array('setting.website.payment.alipay', null, '2019-10-24 22:28:23', '2019-10-24 22:28:23'), object(Closure))in Connection.php line 624 at Connection->run('insert into
settings (
name,
value,
updated_at,
created_at) values (?, ?, ?, ?)', array('setting.website.payment.alipay', null, '2019-10-24 22:28:23', '2019-10-24 22:28:23'), object(Closure))in Connection.php line 459 at Connection->statement('insert into
settings (
name,
value,
updated_at,
created_at) values (?, ?, ?, ?)', array('setting.website.payment.alipay', null, '2019-10-24 22:28:23', '2019-10-24 22:28:23'))in Connection.php line 411 at Connection->insert('insert into
settings (
name,
value,
updated_at,
created_at) values (?, ?, ?, ?)', array('setting.website.payment.alipay', null, '2019-10-24 22:28:23', '2019-10-24 22:28:23'))in Processor.php line 32 at Processor->processInsertGetId(object(Builder), 'insert into
settings (
name,
value,
updated_at,
created_at) values (?, ?, ?, ?)', array('setting.website.payment.alipay', null, '2019-10-24 22:28:23', '2019-10-24 22:28:23'), 'id')in Builder.php line 2615 at Builder->insertGetId(array('setting.website.payment.alipay', null, '2019-10-24 22:28:23', '2019-10-24 22:28:23'), 'id')in Builder.php line 1318 at Builder->__call('insertGetId', array(array('name' => 'setting.website.payment.alipay', 'value' => null, 'updated_at' => '2019-10-24 22:28:23', 'created_at' => '2019-10-24 22:28:23'), 'id'))in Model.php line 823 at Model->insertAndSetId(object(Builder), array('name' => 'setting.website.payment.alipay', 'value' => null, 'updated_at' => '2019-10-24 22:28:23', 'created_at' => '2019-10-24 22:28:23'))in Model.php line 788 at Model->performInsert(object(Builder))in Model.php line 651 at Model->save()in Builder.php line 790 at Builder->Illuminate\Database\Eloquent\{closure}(object(SettingModel))in helpers.php line 1027 at tap(object(SettingModel), object(Closure))in Builder.php line 791 at Builder->create(array('name' => 'setting.website.payment.alipay', 'value' => null))in ForwardsCalls.php line 23 at Model->forwardCallTo(object(Builder), 'create', array(array('name' => 'setting.website.payment.alipay', 'value' => null)))in Model.php line 1608 at Model->__call('create', array(array('name' => 'setting.website.payment.alipay', 'value' => null)))in Model.php line 1620 at Model::__callStatic('create', array(array('name' => 'setting.website.payment.alipay', 'value' => null)))in InstallController.php line 135 at InstallController->insertSettingSchema(object(Request))in InstallController.php line 51 at InstallController->installAction(object(Request)) at call_user_func_array(array(object(InstallController), 'installAction'), array(object(Request)))in Controller.php line 54 at Controller->callAction('installAction', array(object(Request)))in ControllerDispatcher.php line 45 at ControllerDispatcher->dispatch(object(Route), object(InstallController), 'installAction')in Route.php line 212 at Route->runController()in Route.php line 169 at Route->run()in Router.php line 682 at Router->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 30 at Pipeline->Illuminate\Routing\{closure}(object(Request))in ThrottleRequests.php line 58 at ThrottleRequests->handle(object(Request), object(Closure), 60, '1')in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in CheckInstallStatus.php line 35 at CheckInstallStatus->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in SubstituteBindings.php line 41 at SubstituteBindings->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in VerifyCsrfToken.php line 75 at VerifyCsrfToken->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in ShareErrorsFromSession.php line 49 at ShareErrorsFromSession->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in StartSession.php line 63 at StartSession->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in AddQueuedCookiesToResponse.php line 37 at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in EncryptCookies.php line 66 at EncryptCookies->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 104 at Pipeline->then(object(Closure))in Router.php line 684 at Router->runRouteWithinStack(object(Route), object(Request))in Router.php line 659 at Router->runRoute(object(Request), object(Route))in Router.php line 625 at Router->dispatchToRoute(object(Request))in Router.php line 614 at Router->dispatch(object(Request))in Kernel.php line 176 at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))in Pipeline.php line 30 at Pipeline->Illuminate\Routing\{closure}(object(Request))in TrustProxies.php line 57 at TrustProxies->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in TransformsRequest.php line 31 at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in TransformsRequest.php line 31 at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in ValidatePostSize.php line 27 at ValidatePostSize->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in CheckForMaintenanceMode.php line 62 at CheckForMaintenanceMode->handle(object(Request), object(Closure))in Pipeline.php line 151 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 104 at Pipeline->then(object(Closure))in Kernel.php line 151 at Kernel->sendRequestThroughRouter(object(Request))in Kernel.php line 116 at Kernel->handle(object(Request))in index.php line 55
VESTACP登入方式修改
public function managePanelLogin($server, $host) { $url = $this->getUrl($server); $token=base64_encode($host->host_pass); // dd($url); $input = ' <script>document.location.href="' . $url . '/login/?user='.$host->host_name.'&pass='.$token.'";</script>' ; $base64 = base64_encode($input); return ['type' => 'from_base64', 'content' => $base64]; }
VESTACP主機端修改(/usr/local/vesta/web/templates/login.html
)
修改user input
<input value="<?php echo $_GET['user'];?>" tabindex="1" type="text" size="20px" style="width:240px;" name="user" class="vst-input">
修改password input
<input value="<?php echo base64_decode($_GET['pass']);?>" tabindex="2" type="password" size="20px" style="width:240px;" name="password" class="vst-input">
修改button input
<input id="login" tabindex="3" type="submit" value="<?php print __('Log in');?>" class="button">
在</from>
底下新增
<?php if($_GET['user'] !== null AND $_GET['pass'] !== null){echo '<script> setTimeout(function(){ var login = document.getElementById(\'login\'); login.click(); },100); </script>';}?>
It will get more user and someone never use official API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.