Commit c3a69892 by 杨树贤

补充手动新增的账号生成逻辑

parent 613eb660
......@@ -60,6 +60,7 @@ class SupplierAccountApiController extends Controller
$data['create_time'] = time();
$data['create_uid'] = $request->user->userId;
$data['password'] = Hash::make($data['password_raw']);
$data['account_name'] = SupplierAccountService::generateAccountName($supplierId);
$model = new SupplierAccountModel();
$id = $model->insertGetId($data);
if ($id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment