| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace App\Services;
- use App\CarType;
- use App\Configuration;
- use App\Traits\ServiceAppAop;
- use Illuminate\Support\Facades\Cache;
- class ConfigurationService
- {
- use ServiceAppAop;
- protected $modelClass=Configuration::class;
- public function getEnquiryTime()
- {
- return Cache::remember('询价延时时间',null,function (){
- return Configuration::query()->where('name','询价延时时间')->value('value');
- });
- }
- public function getReceiveTime()
- {
- return Cache::remember('接单延时时间',null,function (){
- return Configuration::query()->where('name','接单延时时间')->value('value');
- });
- }
- public function getPriceCoefficient()
- {
- return Cache::remember('价格系数',null,function (){
- return Configuration::query()->where('name','价格系数')->value('value');
- });
- }
- }
|