地图api

This commit is contained in:
2026-01-01 15:19:18 +08:00
parent b8a9f9b62e
commit 09f117e59c
17 changed files with 99 additions and 13 deletions

View File

@@ -44,6 +44,7 @@ class Goods extends Validate
'region_ratio' => 'lt:100',
'shareholder_ratio' => 'lt:100',
'give_integral_ratio' => 'egt:0',
'type' => 'require',
];
protected $message = [
@@ -69,6 +70,7 @@ class Goods extends Validate
'region_ratio.lt' => '区域分红比例不能超过100',
'shareholder_ratio.lt' => '股东分红比例不能超过100',
'give_integral_ratio.egt' => '赠送积分比例须大于或等于0',
'type.require' => '请选择商品类型',
];
/**

View File

@@ -30,6 +30,7 @@ class GoodsCategory extends Validate
'name' => 'require|checkName',
'pid' => 'addPid|editPid',
'image' => 'require',
'type' => 'require',
];
protected $message = [
@@ -37,6 +38,7 @@ class GoodsCategory extends Validate
'name.require' => '分类名称不能为空!',
'name.unique' => '分类名称已存在',
'image.require' => '请上传分类图标',
'type.require' => '请选择分类类型'
];
protected function sceneAdd()
{

View File

@@ -30,6 +30,8 @@ class GoodsOneSpec extends Validate
'one_stock' => 'require|integer',
'one_volume' => 'egt:0',
'one_weight' => 'egt:0',
'type' => 'require',
'points' => 'egt:0',
];
protected $message = [
@@ -45,6 +47,8 @@ class GoodsOneSpec extends Validate
'one_cost_price.egt' => '成本价必须大于或等于0.01',
'one_stock.require' => '请输入库存',
'one_stock.integer' => '库存必须为整型',
'type.require' => '请选择规格类型',
'points.egt' => '积分必须为正整数',
];