提交 1f8957e3 编写于 作者: D Devil

细节优化

上级 22a78c41
......@@ -154,7 +154,7 @@ class RegionService
];
// 得到level,风车车
$data['level'] = ($data['pid'] > 0) ? (Db::name('Region')->where(['id'=>intval($data['pid'])])->value('level')+1) : 0;
$data['level'] = ($data['pid'] > 0) ? (Db::name('Region')->where(['id'=>$data['pid']])->value('level')+1) : 0;
// 添加
if(empty($params['id']))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册