This commit is contained in:
aozhiwei 2022-10-31 15:45:19 +08:00
parent 5c22739c85
commit 3925365b44

View File

@ -503,8 +503,8 @@ class UserController extends BaseAuthedController {
$errCod = 0;
$errMsg = '';
foreach ($validFields as $key => $field) {
$reqVal = getReqVal($key, '');
if (!empty($reqVal)) {
$reqVal = getReqVal($key, null);
if (!is_null($reqVal)) {
if (isset($field['valid_func'])) {
if (!$field['valid_func']($reqVal, $errCod, $errMsg)) {
$this->_rspErr($errCod, $errMsg);