|
|
@ -9,8 +9,8 @@ import ( |
|
|
|
// 完成单次任务
|
|
|
|
func DoTask(dbname, siteid, userId, task_type string, url ...string) (bool, error) { |
|
|
|
|
|
|
|
if dbname == "" || userId == "" || task_type == "" { |
|
|
|
return false, errors.New("参数错误") |
|
|
|
if dbname == "" || userId == "" || task_type == "" || siteid == "" { |
|
|
|
return false, errors.New("参数不能为空") |
|
|
|
} |
|
|
|
|
|
|
|
conn, err := rpc_server_conn(url...) |
|
|
|