diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php b/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php index 224484e32..ce01afc52 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php @@ -106,10 +106,7 @@ class StoreSeckill extends AuthController $storeProductAttrValueServices = app()->make(StoreProductAttrValueServices::class); $unique = $storeProductAttrValueServices->value(['product_id' => $id, 'type' => 1], 'unique'); if ($unique) { - $name = 'seckill_' . $unique . '_1'; - /** @var CacheService $cache */ - $cache = app()->make(CacheService::class); - $cache->del($name); + CacheService::delete('seckill_' . $unique . '_1'); } return app('json')->success(100002); } diff --git a/crmeb/app/services/agent/AgentLevelServices.php b/crmeb/app/services/agent/AgentLevelServices.php index 498d79c1f..ba9258ae0 100644 --- a/crmeb/app/services/agent/AgentLevelServices.php +++ b/crmeb/app/services/agent/AgentLevelServices.php @@ -256,7 +256,7 @@ class AgentLevelServices extends BaseServices */ public function createForm() { - $field[] = Form::input('name', '等级名称')->col(24); + $field[] = Form::input('name', '等级名称')->maxlength(8)->col(24); $field[] = Form::number('grade', '等级', 0)->min(0)->precision(0); $field[] = Form::frameImage('image', '背景图', Url::buildUrl('admin/widget.images/index', array('fodder' => 'image')))->icon('ios-add')->width('950px')->height('505px')->modal(['footer-hide' => true]); $field[] = Form::number('one_brokerage', '一级上浮', 0)->info('在分销一级佣金基础上浮(0-1000之间整数)百分比')->min(0)->max(1000)->precision(0); @@ -278,7 +278,7 @@ class AgentLevelServices extends BaseServices throw new AdminException(100026); $field = []; $field[] = Form::hidden('id', $id); - $field[] = Form::input('name', '等级名称', $levelInfo['name'])->col(24); + $field[] = Form::input('name', '等级名称', $levelInfo['name'])->maxlength(8)->col(24); $field[] = Form::number('grade', '等级', $levelInfo['grade'])->min(0)->precision(0); $field[] = Form::frameImage('image', '背景图', Url::buildUrl('admin/widget.images/index', array('fodder' => 'image')), $levelInfo['image'])->icon('ios-add')->width('950px')->height('505px')->modal(['footer-hide' => true]); $field[] = Form::number('one_brokerage', '一级上浮', $levelInfo['one_brokerage'])->info('在分销一级佣金基础上浮(0-1000之间整数)百分比')->min(0)->max(1000)->precision(0); diff --git a/crmeb/app/services/order/StoreOrderComputedServices.php b/crmeb/app/services/order/StoreOrderComputedServices.php index bff185d68..a2e1e55dd 100644 --- a/crmeb/app/services/order/StoreOrderComputedServices.php +++ b/crmeb/app/services/order/StoreOrderComputedServices.php @@ -82,11 +82,6 @@ class StoreOrderComputedServices extends BaseServices $offlinePayStatus = (int)sys_config('offline_pay_status') ?? (int)2; $systemPayType = PayServices::PAY_TYPE; if ($offlinePayStatus == 2) unset($systemPayType['offline']); - if (strtolower($payType) != 'pc' && strtolower($payType) != 'friend') { - if (!array_key_exists($payType, $systemPayType)) { - throw new ApiException(410241); - } - } if (!$userInfo) { /** @var UserServices $userServices */ $userServices = app()->make(UserServices::class);