Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
381caad8
提交
381caad8
authored
11月 04, 2013
作者:
Chris Rienzo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-5921 --resolve mod_mongo: use jsonString() instead of toString(), tabs instead of spaces
上级
ad8796f5
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
175 行增加
和
176 行删除
+175
-176
mod_mongo.cpp
src/mod/applications/mod_mongo/mod_mongo.cpp
+58
-58
mod_mongo.h
src/mod/applications/mod_mongo/mod_mongo.h
+10
-10
mongo_conn.cpp
src/mod/applications/mod_mongo/mongo_conn.cpp
+107
-108
没有找到文件。
src/mod/applications/mod_mongo/mod_mongo.cpp
浏览文件 @
381caad8
/*
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2005-201
2
, Anthony Minessale II <anthm@freeswitch.org>
* Copyright (C) 2005-201
3
, Anthony Minessale II <anthm@freeswitch.org>
*
* Version: MPL 1.1
*
...
...
@@ -22,7 +22,7 @@
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Tamas Cseke <cstomi.levlist@gmail.com>
*
* mod_mongo.cpp -- API for MongoDB
...
...
@@ -53,7 +53,7 @@ SWITCH_STANDARD_API(mongo_mapreduce_function)
switch_assert
(
ns
!=
NULL
);
if
((
json_query
=
strchr
(
ns
,
DELIMITER
)))
{
*
json_query
++
=
'\0'
;
*
json_query
++
=
'\0'
;
}
if
(
!
zstr
(
ns
)
&&
!
zstr
(
json_query
))
{
...
...
@@ -82,7 +82,7 @@ SWITCH_STANDARD_API(mongo_mapreduce_function)
conn
->
runCommand
(
conn
->
nsGetDB
(
ns
),
cmd
.
done
(),
out
);
mongo_connection_pool_put
(
globals
.
conn_pool
,
conn
,
SWITCH_FALSE
);
stream
->
write_function
(
stream
,
"-OK
\n
%s
\n
"
,
out
.
to
String
().
c_str
());
stream
->
write_function
(
stream
,
"-OK
\n
%s
\n
"
,
out
.
json
String
().
c_str
());
}
else
{
stream
->
write_function
(
stream
,
"-ERR
\n
No connection
\n
"
);
}
...
...
@@ -93,7 +93,7 @@ SWITCH_STANDARD_API(mongo_mapreduce_function)
stream
->
write_function
(
stream
,
"-ERR
\n
%s
\n
"
,
e
.
toString
().
c_str
());
}
}
else
{
stream
->
write_function
(
stream
,
"-ERR
\n
%s
\n
"
,
MAPREDUCE_SYNTAX
);
stream
->
write_function
(
stream
,
"-ERR
\n
%s
\n
"
,
MAPREDUCE_SYNTAX
);
}
switch_safe_free
(
ns
);
...
...
@@ -104,50 +104,50 @@ SWITCH_STANDARD_API(mongo_mapreduce_function)
SWITCH_STANDARD_API
(
mongo_find_one_function
)
{
switch_status_t
status
=
SWITCH_STATUS_SUCCESS
;
char
*
ns
=
NULL
,
*
json_query
=
NULL
,
*
json_fields
=
NULL
;
ns
=
strdup
(
cmd
);
switch_assert
(
ns
!=
NULL
);
if
((
json_query
=
strchr
(
ns
,
DELIMITER
)))
{
*
json_query
++
=
'\0'
;
if
((
json_fields
=
strchr
(
json_query
,
DELIMITER
)))
{
*
json_fields
++
=
'\0'
;
}
}
if
(
!
zstr
(
ns
)
&&
!
zstr
(
json_query
)
&&
!
zstr
(
json_fields
))
{
DBClientBase
*
conn
=
NULL
;
try
{
BSONObj
query
=
fromjson
(
json_query
);
BSONObj
fields
=
fromjson
(
json_fields
);
conn
=
mongo_connection_pool_get
(
globals
.
conn_pool
);
if
(
conn
)
{
BSONObj
res
=
conn
->
findOne
(
ns
,
Query
(
query
),
&
fields
);
mongo_connection_pool_put
(
globals
.
conn_pool
,
conn
,
SWITCH_FALSE
);
stream
->
write_function
(
stream
,
"-OK
\n
%s
\n
"
,
res
.
to
String
().
c_str
());
}
else
{
stream
->
write_function
(
stream
,
"-ERR
\n
No connection
\n
"
);
}
}
catch
(
DBException
&
e
)
{
if
(
conn
)
{
mongo_connection_pool_put
(
globals
.
conn_pool
,
conn
,
SWITCH_TRUE
);
}
stream
->
write_function
(
stream
,
"-ERR
\n
%s
\n
"
,
e
.
toString
().
c_str
());
}
}
else
{
switch_status_t
status
=
SWITCH_STATUS_SUCCESS
;
char
*
ns
=
NULL
,
*
json_query
=
NULL
,
*
json_fields
=
NULL
;
ns
=
strdup
(
cmd
);
switch_assert
(
ns
!=
NULL
);
if
((
json_query
=
strchr
(
ns
,
DELIMITER
)))
{
*
json_query
++
=
'\0'
;
if
((
json_fields
=
strchr
(
json_query
,
DELIMITER
)))
{
*
json_fields
++
=
'\0'
;
}
}
if
(
!
zstr
(
ns
)
&&
!
zstr
(
json_query
)
&&
!
zstr
(
json_fields
))
{
DBClientBase
*
conn
=
NULL
;
try
{
BSONObj
query
=
fromjson
(
json_query
);
BSONObj
fields
=
fromjson
(
json_fields
);
conn
=
mongo_connection_pool_get
(
globals
.
conn_pool
);
if
(
conn
)
{
BSONObj
res
=
conn
->
findOne
(
ns
,
Query
(
query
),
&
fields
);
mongo_connection_pool_put
(
globals
.
conn_pool
,
conn
,
SWITCH_FALSE
);
stream
->
write_function
(
stream
,
"-OK
\n
%s
\n
"
,
res
.
json
String
().
c_str
());
}
else
{
stream
->
write_function
(
stream
,
"-ERR
\n
No connection
\n
"
);
}
}
catch
(
DBException
&
e
)
{
if
(
conn
)
{
mongo_connection_pool_put
(
globals
.
conn_pool
,
conn
,
SWITCH_TRUE
);
}
stream
->
write_function
(
stream
,
"-ERR
\n
%s
\n
"
,
e
.
toString
().
c_str
());
}
}
else
{
stream
->
write_function
(
stream
,
"-ERR
\n
%s
\n
"
,
FIND_ONE_SYNTAX
);
}
}
switch_safe_free
(
ns
);
switch_safe_free
(
ns
);
return
status
;
return
status
;
}
static
switch_status_t
config
(
void
)
...
...
@@ -214,21 +214,21 @@ SWITCH_MODULE_DEFINITION(mod_mongo, mod_mongo_load, mod_mongo_shutdown, NULL);
SWITCH_MODULE_LOAD_FUNCTION
(
mod_mongo_load
)
{
switch_api_interface_t
*
api_interface
;
switch_application_interface_t
*
app_interface
;
switch_api_interface_t
*
api_interface
;
switch_application_interface_t
*
app_interface
;
*
module_interface
=
switch_loadable_module_create_module_interface
(
pool
,
modname
);
*
module_interface
=
switch_loadable_module_create_module_interface
(
pool
,
modname
);
memset
(
&
globals
,
0
,
sizeof
(
globals
)
);
memset
(
&
globals
,
0
,
sizeof
(
globals
));
if
(
config
()
!=
SWITCH_STATUS_SUCCESS
)
{
return
SWITCH_STATUS_TERM
;
}
if
(
config
()
!=
SWITCH_STATUS_SUCCESS
)
{
return
SWITCH_STATUS_TERM
;
}
SWITCH_ADD_API
(
api_interface
,
"mongo_find_one"
,
"findOne"
,
mongo_find_one_function
,
FIND_ONE_SYNTAX
);
SWITCH_ADD_API
(
api_interface
,
"mongo_mapreduce"
,
"Map/Reduce"
,
mongo_mapreduce_function
,
MAPREDUCE_SYNTAX
);
SWITCH_ADD_API
(
api_interface
,
"mongo_find_one"
,
"findOne"
,
mongo_find_one_function
,
FIND_ONE_SYNTAX
);
SWITCH_ADD_API
(
api_interface
,
"mongo_mapreduce"
,
"Map/Reduce"
,
mongo_mapreduce_function
,
MAPREDUCE_SYNTAX
);
return
SWITCH_STATUS_SUCCESS
;
return
SWITCH_STATUS_SUCCESS
;
}
SWITCH_MODULE_SHUTDOWN_FUNCTION
(
mod_mongo_shutdown
)
...
...
src/mod/applications/mod_mongo/mod_mongo.h
浏览文件 @
381caad8
/*
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2005-201
2
, Anthony Minessale II <anthm@freeswitch.org>
* Copyright (C) 2005-201
3
, Anthony Minessale II <anthm@freeswitch.org>
*
* Version: MPL 1.1
*
...
...
@@ -40,14 +40,14 @@
using
namespace
mongo
;
typedef
struct
{
char
*
conn_str
;
char
*
conn_str
;
switch_size_t
min_connections
;
switch_size_t
max_connections
;
switch_size_t
size
;
switch_queue_t
*
connections
;
switch_mutex_t
*
mutex
;
switch_memory_pool_t
*
pool
;
switch_size_t
min_connections
;
switch_size_t
max_connections
;
switch_size_t
size
;
switch_queue_t
*
connections
;
switch_mutex_t
*
mutex
;
switch_memory_pool_t
*
pool
;
}
mongo_connection_pool_t
;
...
...
@@ -56,7 +56,7 @@ switch_status_t mongo_connection_create(DBClientBase **connection, const char *c
void
mongo_connection_destroy
(
DBClientBase
**
conn
);
switch_status_t
mongo_connection_pool_create
(
mongo_connection_pool_t
**
conn_pool
,
switch_size_t
min_connections
,
switch_size_t
max_connections
,
const
char
*
conn_str
);
const
char
*
conn_str
);
void
mongo_connection_pool_destroy
(
mongo_connection_pool_t
**
conn_pool
);
...
...
src/mod/applications/mod_mongo/mongo_conn.cpp
浏览文件 @
381caad8
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2005-201
2
, Anthony Minessale II <anthm@freeswitch.org>
* Copyright (C) 2005-201
3
, Anthony Minessale II <anthm@freeswitch.org>
*
* Version: MPL 1.1
*
...
...
@@ -42,162 +42,161 @@
switch_status_t
mongo_connection_create
(
DBClientBase
**
connection
,
const
char
*
conn_str
)
{
DBClientBase
*
conn
=
NULL
;
string
conn_string
(
conn_str
),
err_msg
;
ConnectionString
cs
=
ConnectionString
::
parse
(
conn_string
,
err_msg
);
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
if
(
!
cs
.
isValid
())
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Can't parse url: %s
\n
"
,
err_msg
.
c_str
());
return
status
;
}
try
{
conn
=
cs
.
connect
(
err_msg
);
}
catch
(
DBException
&
e
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Can't connect to mongo [%s]: %s
\n
"
,
conn_str
,
err_msg
.
c_str
());
return
status
;
}
if
(
conn
)
{
*
connection
=
conn
;
status
=
SWITCH_STATUS_SUCCESS
;
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Connected to mongo [%s]
\n
"
,
conn_str
);
}
return
status
;
DBClientBase
*
conn
=
NULL
;
string
conn_string
(
conn_str
),
err_msg
;
ConnectionString
cs
=
ConnectionString
::
parse
(
conn_string
,
err_msg
);
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
if
(
!
cs
.
isValid
())
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Can't parse url: %s
\n
"
,
err_msg
.
c_str
());
return
status
;
}
try
{
conn
=
cs
.
connect
(
err_msg
);
}
catch
(
DBException
&
e
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Can't connect to mongo [%s]: %s
\n
"
,
conn_str
,
err_msg
.
c_str
());
return
status
;
}
if
(
conn
)
{
*
connection
=
conn
;
status
=
SWITCH_STATUS_SUCCESS
;
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Connected to mongo [%s]
\n
"
,
conn_str
);
}
return
status
;
}
void
mongo_connection_destroy
(
DBClientBase
**
conn
)
{
switch_assert
(
*
conn
!=
NULL
);
delete
*
conn
;
switch_assert
(
*
conn
!=
NULL
);
delete
*
conn
;
*
conn
=
NULL
;
*
conn
=
NULL
;
}
switch_status_t
mongo_connection_pool_create
(
mongo_connection_pool_t
**
conn_pool
,
switch_size_t
min_connections
,
switch_size_t
max_connections
,
const
char
*
conn_str
)
const
char
*
conn_str
)
{
switch_memory_pool_t
*
pool
=
NULL
;
switch_status_t
status
=
SWITCH_STATUS_SUCCESS
;
mongo_connection_pool_t
*
cpool
=
NULL
;
DBClientBase
*
conn
=
NULL
;
if
((
status
=
switch_core_new_memory_pool
(
&
pool
))
!=
SWITCH_STATUS_SUCCESS
)
{
return
status
;
}
if
(
!
(
cpool
=
(
mongo_connection_pool_t
*
)
switch_core_alloc
(
pool
,
sizeof
(
mongo_connection_pool_t
))))
{
switch_goto_status
(
SWITCH_STATUS_MEMERR
,
done
);
}
if
((
status
=
switch_mutex_init
(
&
cpool
->
mutex
,
SWITCH_MUTEX_NESTED
,
pool
))
!=
SWITCH_STATUS_SUCCESS
)
{
goto
done
;
}
if
((
status
=
switch_queue_create
(
&
cpool
->
connections
,
max_connections
,
pool
))
!=
SWITCH_STATUS_SUCCESS
)
{
goto
done
;
}
cpool
->
min_connections
=
min_connections
;
cpool
->
max_connections
=
max_connections
;
cpool
->
conn_str
=
switch_core_strdup
(
pool
,
conn_str
);
cpool
->
pool
=
pool
;
for
(
cpool
->
size
=
0
;
cpool
->
size
<
min_connections
;
cpool
->
size
++
)
{
if
(
mongo_connection_create
(
&
conn
,
conn_str
)
==
SWITCH_STATUS_SUCCESS
)
{
mongo_connection_pool_put
(
cpool
,
conn
,
SWITCH_FALSE
);
}
else
{
break
;
}
}
switch_memory_pool_t
*
pool
=
NULL
;
switch_status_t
status
=
SWITCH_STATUS_SUCCESS
;
mongo_connection_pool_t
*
cpool
=
NULL
;
DBClientBase
*
conn
=
NULL
;
if
((
status
=
switch_core_new_memory_pool
(
&
pool
))
!=
SWITCH_STATUS_SUCCESS
)
{
return
status
;
}
if
(
!
(
cpool
=
(
mongo_connection_pool_t
*
)
switch_core_alloc
(
pool
,
sizeof
(
mongo_connection_pool_t
))))
{
switch_goto_status
(
SWITCH_STATUS_MEMERR
,
done
);
}
if
((
status
=
switch_mutex_init
(
&
cpool
->
mutex
,
SWITCH_MUTEX_NESTED
,
pool
))
!=
SWITCH_STATUS_SUCCESS
)
{
goto
done
;
}
if
((
status
=
switch_queue_create
(
&
cpool
->
connections
,
max_connections
,
pool
))
!=
SWITCH_STATUS_SUCCESS
)
{
goto
done
;
}
cpool
->
min_connections
=
min_connections
;
cpool
->
max_connections
=
max_connections
;
cpool
->
conn_str
=
switch_core_strdup
(
pool
,
conn_str
);
cpool
->
pool
=
pool
;
for
(
cpool
->
size
=
0
;
cpool
->
size
<
min_connections
;
cpool
->
size
++
)
{
if
(
mongo_connection_create
(
&
conn
,
conn_str
)
==
SWITCH_STATUS_SUCCESS
)
{
mongo_connection_pool_put
(
cpool
,
conn
,
SWITCH_FALSE
);
}
else
{
break
;
}
}
done:
if
(
status
==
SWITCH_STATUS_SUCCESS
)
{
*
conn_pool
=
cpool
;
}
else
{
switch_core_destroy_memory_pool
(
&
pool
);
}
if
(
status
==
SWITCH_STATUS_SUCCESS
)
{
*
conn_pool
=
cpool
;
}
else
{
switch_core_destroy_memory_pool
(
&
pool
);
}
return
status
;
return
status
;
}
void
mongo_connection_pool_destroy
(
mongo_connection_pool_t
**
conn_pool
)
{
mongo_connection_pool_t
*
cpool
=
*
conn_pool
;
void
*
data
=
NULL
;
mongo_connection_pool_t
*
cpool
=
*
conn_pool
;
void
*
data
=
NULL
;
switch_assert
(
cpool
!=
NULL
);
switch_assert
(
cpool
!=
NULL
);
while
(
switch_queue_trypop
(
cpool
->
connections
,
&
data
)
==
SWITCH_STATUS_SUCCESS
)
{
mongo_connection_destroy
((
DBClientBase
**
)
&
data
);
}
while
(
switch_queue_trypop
(
cpool
->
connections
,
&
data
)
==
SWITCH_STATUS_SUCCESS
)
{
mongo_connection_destroy
((
DBClientBase
**
)
&
data
);
}
switch_mutex_destroy
(
cpool
->
mutex
);
switch_core_destroy_memory_pool
(
&
cpool
->
pool
);
switch_mutex_destroy
(
cpool
->
mutex
);
switch_core_destroy_memory_pool
(
&
cpool
->
pool
);
*
conn_pool
=
NULL
;
*
conn_pool
=
NULL
;
}
DBClientBase
*
mongo_connection_pool_get
(
mongo_connection_pool_t
*
conn_pool
)
{
DBClientBase
*
conn
=
NULL
;
void
*
data
=
NULL
;
DBClientBase
*
conn
=
NULL
;
void
*
data
=
NULL
;
switch_assert
(
conn_pool
!=
NULL
);
switch_assert
(
conn_pool
!=
NULL
);
switch_mutex_lock
(
conn_pool
->
mutex
);
switch_mutex_lock
(
conn_pool
->
mutex
);
if
(
switch_queue_trypop
(
conn_pool
->
connections
,
&
data
)
==
SWITCH_STATUS_SUCCESS
)
{
conn
=
(
DBClientBase
*
)
data
;
}
else
if
(
mongo_connection_create
(
&
conn
,
conn_pool
->
conn_str
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
++
conn_pool
->
size
>
conn_pool
->
max_connections
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Connection pool is empty. You may want to increase 'max-connections'
\n
"
);
}
}
if
(
switch_queue_trypop
(
conn_pool
->
connections
,
&
data
)
==
SWITCH_STATUS_SUCCESS
)
{
conn
=
(
DBClientBase
*
)
data
;
}
else
if
(
mongo_connection_create
(
&
conn
,
conn_pool
->
conn_str
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
++
conn_pool
->
size
>
conn_pool
->
max_connections
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Connection pool is empty. You may want to increase 'max-connections'
\n
"
);
}
}
switch_mutex_unlock
(
conn_pool
->
mutex
);
switch_mutex_unlock
(
conn_pool
->
mutex
);
#ifdef MONGO_POOL_DEBUG
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"POOL get: size %d conn: %p
\n
"
,
(
int
)
switch_queue_size
(
conn_pool
->
connections
),
conn
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"POOL get: size %d conn: %p
\n
"
,
(
int
)
switch_queue_size
(
conn_pool
->
connections
),
conn
);
#endif
return
conn
;
return
conn
;
}
switch_status_t
mongo_connection_pool_put
(
mongo_connection_pool_t
*
conn_pool
,
DBClientBase
*
conn
,
switch_bool_t
destroy
)
{
switch_status_t
status
=
SWITCH_STATUS_SUCCESS
;
switch_status_t
status
=
SWITCH_STATUS_SUCCESS
;
switch_assert
(
conn_pool
!=
NULL
);
switch_assert
(
conn
!=
NULL
);
switch_assert
(
conn_pool
!=
NULL
);
switch_assert
(
conn
!=
NULL
);
switch_mutex_lock
(
conn_pool
->
mutex
);
if
(
destroy
||
conn_pool
->
size
>
conn_pool
->
max_connections
)
{
switch_mutex_lock
(
conn_pool
->
mutex
);
if
(
destroy
||
conn_pool
->
size
>
conn_pool
->
max_connections
)
{
#ifdef MONGO_POOL_DEBUG
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"POOL: Destroy connection %p
\n
"
,
conn
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"POOL: Destroy connection %p
\n
"
,
conn
);
#endif
mongo_connection_destroy
(
&
conn
);
conn_pool
->
size
--
;
}
else
{
mongo_connection_destroy
(
&
conn
);
conn_pool
->
size
--
;
}
else
{
#ifdef MONGO_POOL_DEBUG
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"POOL: push connection %p
\n
"
,
conn
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"POOL: push connection %p
\n
"
,
conn
);
#endif
status
=
switch_queue_push
(
conn_pool
->
connections
,
conn
);
}
status
=
switch_queue_push
(
conn_pool
->
connections
,
conn
);
}
switch_mutex_unlock
(
conn_pool
->
mutex
);
switch_mutex_unlock
(
conn_pool
->
mutex
);
#ifdef MONGO_POOL_DEBUG
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"POOL: put size %d conn: %p
\n
"
,
(
int
)
switch_queue_size
(
conn_pool
->
connections
),
conn
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"POOL: put size %d conn: %p
\n
"
,
(
int
)
switch_queue_size
(
conn_pool
->
connections
),
conn
);
#endif
return
status
;
return
status
;
}
/* For Emacs:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论