Commit 21cfa09d authored by wxl's avatar wxl

no message

parent 70f2cf65
......@@ -94,6 +94,9 @@ class Users extends Common
if(empty($img)){
$this->error("头像不能为空!");
}
if(isset($mobile) && _isMobile($mobile)){
$this->error("请填写正确的手机号!");
}
$db=Db::name('member')->where(['uid'=>$this->uid])->update(['img'=>$img,'nickname'=>$nickname,'sex'=>$sex,'birthday'=>$birthday,
'mobile'=>$mobile,'email'=>$email,'qianming'=>$qianming]);
if($db){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment