mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-03 03:39:51 +08:00
静态文 静态文件位置优化,商品分类
This commit is contained in:
@ -102,23 +102,17 @@ class GoodsCategory extends Common
|
||||
*/
|
||||
public function Delete()
|
||||
{
|
||||
// 是否ajax
|
||||
if(!IS_AJAX)
|
||||
{
|
||||
$this->error(lang('common_unauthorized_access'));
|
||||
return $this->error(lang('common_unauthorized_access'));
|
||||
}
|
||||
|
||||
$m = D('GoodsCategory');
|
||||
if($m->create($_POST, 5))
|
||||
{
|
||||
if($m->delete(I('id')))
|
||||
{
|
||||
return json(lang('common_operation_delete_success'));
|
||||
} else {
|
||||
return json(lang('common_operation_delete_error'), -100);
|
||||
}
|
||||
} else {
|
||||
return json($m->getError(), -1);
|
||||
}
|
||||
// 开始操作
|
||||
$params = input('post.');
|
||||
$params['admin'] = $this->admin;
|
||||
$ret = GoodsService::GoodsCategoryDelete($params);
|
||||
return json($ret);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user