Commit 94ebbd76 authored by hujun's avatar hujun

新增和编辑验证客户手机号

parent 9b2e2055
......@@ -98,6 +98,9 @@ class Client extends Basic
case -3 :
$this->code = 101;
$this->msg = '没有新增VIP权限';break;
case -4 :
$this->code = 101;
$this->msg = '客户信息错误,请检查!';break;
}
} else {
......
......@@ -249,6 +249,9 @@ class Users extends Model
$insert_data['user_nick'] = $data['user_nick'];
}
if (!empty($data['user_phone']) && $id == 0) {
if (strlen($data['user_phone']) != 11) {
return -4;
}
$insert_data['user_phone'] = $data['user_phone'];
}
if (!empty($data['sex'])) {
......
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