|
|
|
|
@ -172,7 +172,9 @@ class UserController extends CommonController
|
|
|
|
|
}
|
|
|
|
|
$model->password = Hash::make($all['password']);
|
|
|
|
|
}
|
|
|
|
|
$all['name'] = $all['username'];
|
|
|
|
|
if (isset($all['username']) && !empty($all['username'])) {
|
|
|
|
|
$all['name'] = $all['username'];
|
|
|
|
|
}
|
|
|
|
|
if (isset($all['name']) && !empty($all['name'])) {
|
|
|
|
|
$all['letter'] = strtoupper(Pinyin::abbr(mb_substr($all['name'], 0, 1))[0]);
|
|
|
|
|
}
|
|
|
|
|
|