更新商户类型

This commit is contained in:
yaooo 2023-09-04 10:54:16 +08:00
parent 52484887d9
commit 1b2111ad35
2 changed files with 13 additions and 1 deletions

View File

@ -37,6 +37,18 @@ class Merchant extends BaseModel
const TypeTownServer = 16; //镇服务团队
const TypeTownSupplyChain = 17; //镇级供应链
//定义店铺类型code
const TypeCode = [
'TypeStore', //镇街店铺
'TypeCloudWarehouse', //镇级云仓
'TypeSupplyChain', //市级供应链
'TypePlatform', //市级云仓
'TypeTeamServer', //小组服务团
'TypeVillageServer', //村服务团队
'TypeTownServer', //镇服务团队
'TypeTownSupplyChain', //镇级供应链
];
const TypeMap = [
self::TypeStore => '镇街店铺',
self::TypeCloudWarehouse => '里海云仓',

View File

@ -91,7 +91,7 @@ class MerchantType extends BaseController
protected function getValidParams()
{
$data = $this->request->params(['type_name', 'type_info', 'is_margin', 'margin', 'auth', 'description']);
$data = $this->request->params(['type_name', 'type_info', 'is_margin', 'margin', 'auth', 'description', 'is_allow_apply', 'is_search_display', 'type_code']);
$validate = app()->make(MerchantTypeValidate::class);
$validate->check($data);
if ($data['is_margin'] == 1) {