You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
918 B
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
/**
* 批量异步任务的子任务结果
* @author auto create
*/
class Subtask
{
/**
* 标记子任务是否成功。为true表示子任务成功用户可以按照正确执行的结果格式解析sub_task_result。为false表示子任务失败了用户需要按照失败的结果格式解析sub_task_result里面只有sub_code和sub_msg
**/
public $is_success;
/**
* 子任务的有效请求参数以json格式进行key:value的组合
**/
public $sub_task_request;
/**
* 子任务返回的结果以json格式进行key:value组合可以和单个api请求结果解析复用。以获取交易订单详情为例子任务执行成功返回的结果格式为{“trade”:{"tid":123456,"seller_nick":"淘宝卖家"}};子任务执行失败结果格式为{"sub_code":"isv.trade-not-exist","sub_msg":"交易订单不存在"}
**/
public $sub_task_result;
}
?>