* Finish task #43187.

This commit is contained in:
liyuchun
2021-10-14 13:51:47 +08:00
parent ad21350632
commit cfdce3652f
5 changed files with 178 additions and 170 deletions
+3 -1
View File
@@ -507,7 +507,9 @@ class userModel extends model
->batchCheck($requiredFields, 'notempty')
->check('account', 'unique', "id != '$userID'")
->check('account', 'account')
->checkIF($this->post->email != '', 'email', 'email')
->checkIF($this->post->email != '', 'email', 'email')
->checkIF($this->post->phone != '', 'phone', 'phone')
->checkIF($this->post->mobile != '', 'mobile', 'mobile')
->where('id')->eq((int)$userID)
->exec();