| xqd
@@ -168,11 +168,11 @@ class AgentController extends Controller
|
|
|
unset($data['agent_banner']);
|
|
|
$ok = $this->repository->update(request('id'),$data);
|
|
|
if($ok) {
|
|
|
- $url[] = array('url'=>U( 'Album/Agent/index'),'title'=>'返回列表');
|
|
|
- $this->showMessage('添加成功',$url);
|
|
|
+ $urls[] = array('url'=>U( 'Album/Agent/index'),'title'=>'返回列表');
|
|
|
+ $this->showMessage('添加成功',$urls);
|
|
|
}else{
|
|
|
- $url[] = array('url'=>U( 'Album/Agent/index'),'title'=>'返回列表');
|
|
|
- return $this->showWarning('操作失败',$url);
|
|
|
+ $urls[] = array('url'=>U( 'Album/Agent/index'),'title'=>'返回列表');
|
|
|
+ return $this->showWarning('操作失败',$urls);
|
|
|
}
|
|
|
}
|
|
|
|