Commit c5cd504b authored by hujun's avatar hujun

新增经纪人手机后6位作为初始密码

parent e3797c03
......@@ -131,7 +131,7 @@ class Agent extends Basic
if($table->repetition('phone',$data['phone']) && empty($id)) {
return $this->response(100, '存在重复值');
}
$data['password'] = md5(substr($data['phone'], -6));
if ($table->editData($data,$id)) {
return $this->response(200, '成功');
} else {
......
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