Commit 8cab217e3c4a7474ac0c68c602f007e25e0a736b

Authored by Deepseath
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,7 +116,7 @@ class User
116 // 如果是 i-click.com 邮箱则不处理 116 // 如果是 i-click.com 邮箱则不处理
117 throw new \Exception('i-click.com mail ignore', 4013); 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 $emailParams = []; 121 $emailParams = [];
122 if (!empty($params['email'])) { 122 if (!empty($params['email'])) {
@@ -150,7 +150,7 @@ class User @@ -150,7 +150,7 @@ class User
150 // 如果是 i-click.com 邮箱则不处理 150 // 如果是 i-click.com 邮箱则不处理
151 throw new \Exception('i-click.com mail ignore', 4013); 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 $emailParams = []; 154 $emailParams = [];
155 if (!empty($params['email'])) { 155 if (!empty($params['email'])) {
156 $emailParams['email'] = $params['email']; 156 $emailParams['email'] = $params['email'];