|
|
|
@ -117,7 +117,6 @@ class LanzuCsInfoController extends AdminController |
|
|
|
$form->saved(function (Form $form, $cid) { |
|
|
|
$model = new modelCsInfo(); |
|
|
|
if ($form->isCreating()) { |
|
|
|
DB::transaction(function () use ($form, $model, $cid){ |
|
|
|
//>>1.添加登录帐号
|
|
|
|
$res = Auth::addAdminUser($form, $model, $cid, 'lanzu_cs'); |
|
|
|
if ($res == -1) { |
|
|
|
@ -140,8 +139,6 @@ class LanzuCsInfoController extends AdminController |
|
|
|
$cs->qrcode_path = $fileName; |
|
|
|
$cs->save(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
//>>4.编辑时同步登陆帐号状态
|
|
|
|
$adu = new AdminUsers(); |
|
|
|
|