Commit 8cab217e3c4a7474ac0c68c602f007e25e0a736b
1 parent
8b090b55
fixed
Showing
1 changed file
with
2 additions
and
2 deletions
src/ApiV2/User.php
... | ... | @@ -116,7 +116,7 @@ class User |
116 | 116 | // 如果是 i-click.com 邮箱则不处理 |
117 | 117 | throw new \Exception('i-click.com mail ignore', 4013); |
118 | 118 | } |
119 | - if (isset($params['email']) && !preg_match('/dismiss_\d+_\d+/is', $params['email'])) { | |
119 | + if (isset($params['email']) && !preg_match('/dismiss_\d+_\d+/is', $params['email']) && !preg_match('/delete_\d+_\d+/is', $params['email'])) { | |
120 | 120 | // 不是离职标识邮箱,则先更改邮箱 |
121 | 121 | $emailParams = []; |
122 | 122 | if (!empty($params['email'])) { |
... | ... | @@ -150,7 +150,7 @@ class User |
150 | 150 | // 如果是 i-click.com 邮箱则不处理 |
151 | 151 | throw new \Exception('i-click.com mail ignore', 4013); |
152 | 152 | } |
153 | - if (isset($params['email']) && !preg_match('/delete_\d+_\d+/is', $params['email'])) { | |
153 | + if (isset($params['email']) && !preg_match('/delete_\d+_\d+/is', $params['email']) && !preg_match('/dismiss_\d+_\d+/is', $params['email'])) { | |
154 | 154 | $emailParams = []; |
155 | 155 | if (!empty($params['email'])) { |
156 | 156 | $emailParams['email'] = $params['email']; | ... | ... |