| xqd
@@ -196,10 +196,10 @@ class UserController extends Controller
|
|
|
$data = $this->repository->find($request->get('id'));
|
|
|
return view('admin.album.xyx.user.edit',compact('data'));*/
|
|
|
$data = $this->repository->find($request->get('id'));
|
|
|
- if($data->is_agent == 1){
|
|
|
+ if($data->is_dealer == 1){
|
|
|
return $this->showWarning('该用户已成为经销商');
|
|
|
}
|
|
|
- $save['is_agent'] = 1;
|
|
|
+ $save['is_dealer'] = 1;
|
|
|
$ok = $this->repository->update(request('id'),$save);
|
|
|
|
|
|
if($ok){
|