thinkphp 判断添加是否成功

2025-03-22 19:29:27
推荐回答(1个)
回答(1):

if($arr){
$this->success('添加成功',U('Index/index'));
}else{
$this->error('添加失败');
}