修复创建错误

This commit is contained in:
mkm 2023-11-14 20:27:16 +08:00
parent 254da8cbdb
commit 78ae4718c1

View File

@ -254,10 +254,10 @@ class Merchant extends BaseController
'account'=>'yy'.$admins['account'], 'account'=>'yy'.$admins['account'],
'real_name' => $admins['real_name'], 'real_name' => $admins['real_name'],
'phone' => $admins['phone'], 'phone' => $admins['phone'],
'roles' => 26, 'roles' => '26',
'level' => 2 'level' => 2
]; ];
$adminRepository->create($data); Db::name('merchant_admin')->insert($data);
$adminInfo = $adminRepository->merIdByAdmin($id,['account'=>'yy'.$admins['account']],2); $adminInfo = $adminRepository->merIdByAdmin($id,['account'=>'yy'.$admins['account']],2);
} }
}else{ }else{