|
@@ -116,7 +116,7 @@ class User extends Apic
|
|
{
|
|
{
|
|
$field = [
|
|
$field = [
|
|
'mobile',
|
|
'mobile',
|
|
- 'email',
|
|
|
|
|
|
+ //'email',
|
|
'avatar',
|
|
'avatar',
|
|
'firstname',
|
|
'firstname',
|
|
'lastname',
|
|
'lastname',
|
|
@@ -125,12 +125,12 @@ class User extends Apic
|
|
|
|
|
|
$data = request_post_hub($field);
|
|
$data = request_post_hub($field);
|
|
|
|
|
|
- if(isset($data['email'])){
|
|
|
|
|
|
+ /*if(isset($data['email'])){
|
|
$check_email = Db::name('coach')->where('email',$data['email'])->where('id','neq',$this->auth->id)->find();
|
|
$check_email = Db::name('coach')->where('email',$data['email'])->where('id','neq',$this->auth->id)->find();
|
|
if($check_email){
|
|
if($check_email){
|
|
$this->error('邮箱已被其他人使用');
|
|
$this->error('邮箱已被其他人使用');
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
if(isset($data['mobile'])){
|
|
if(isset($data['mobile'])){
|
|
$check_mobile = Db::name('coach')->where('mobile',$data['mobile'])->where('id','neq',$this->auth->id)->find();
|
|
$check_mobile = Db::name('coach')->where('mobile',$data['mobile'])->where('id','neq',$this->auth->id)->find();
|