静态文 静态文件位置优化,商品分类

This commit is contained in:
gongfuxiang
2018-12-17 02:54:10 +08:00
parent 87590024d5
commit d4e76fe7e7
1212 changed files with 124 additions and 88 deletions

View File

@ -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);
}
}
?>