后台添加地址库时带上区域级别
parent
87e7da2c51
commit
b4a9cbc632
|
|
@ -153,6 +153,9 @@ class RegionService
|
|||
'is_enable' => isset($params['is_enable']) ? intval($params['is_enable']) : 0,
|
||||
];
|
||||
|
||||
// 得到level,风车车
|
||||
$data['level'] = ($data['pid'] > 0) ? (Db::name('Region')->where(['id'=>intval($data['pid'])])->value('level')+1) : 0;
|
||||
|
||||
// 添加
|
||||
if(empty($params['id']))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue