find($this->id);
$url = Dever::url('api.get&level_total=2', 'area');
$data['area'] = '';
if ($data['status'] == 2) {
$data['status'] = '认证状态:认证中';
} elseif ($data['status'] == 3) {
$data['status'] = '认证状态:认证失败 重新认证';
} else {
$data['status'] = '认证状态:已认证 重新认证';
}
return $data;
}
# 获取基本信息
public function getConfig()
{
# 修改资料
$data['update'] = Dever::url('admin/info.update', 'factory');
return $data;
}
# 认证
public function update_api()
{
$input = Dever::input();
$update['name'] = $input['update_name'];
$update['truename'] = $input['update_truename'];
$update['mobile'] = $input['update_mobile'];
$update['area'] = $input['update_area'];
$update['address'] = $input['update_address'];
$update['license'] = $input['update_license'];
$update['license_number'] = $input['update_license_number'];
$update['idcard_front'] = $input['update_idcard_front'];
$update['idcard_back'] = $input['update_idcard_back'];
$update['kh_license'] = $input['update_kh_license'];
$update['status'] = 2;
$update['where_id'] = $this->id;
Dever::db('factory/info')->update($update);
return 'reload';
}
}