mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
秒杀删除时候缓存问题处理,生成订单时候的支付类型判断,分销等级文字限制8个字符
This commit is contained in:
parent
cee9c3473d
commit
9e8cccbbd0
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user