Commit d0e61bd1 by 宁成龙

修复user_sn不存在时的报错

parent 76c34743
Showing with 8 additions and 8 deletions
......@@ -79,14 +79,14 @@ class UserController extends AdminController
try {
$data = request()->all();
$params = [
'company_name' => $data['company_name'],
'user_sn' => $data['user_sn'],
'first_name' => $data['first_name'],
'last_name' => $data['last_name'],
'phone' => $data['phone'],
'email' => $data['email'],
'account_properties' => $data['account_properties'],
'remark' => $data['remark'],
'company_name' => $data['company_name'] ?? "",
'user_sn' => $data['user_sn'] ?? "",
'first_name' => $data['first_name'] ?? "",
'last_name' => $data['last_name'] ?? "",
'phone' => $data['phone'] ?? "",
'email' => $data['email'] ?? "",
'account_properties' => $data['account_properties'] ?? "",
'remark' => $data['remark'] ?? "",
'user_address_list' => $data['user_address_list'] ?? [],
];
......
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