md5('32md5'), "time"=>"16828283883", "uuid"=>'XXXXXXXXXXXXX', "onlineService"=>"sd|chatgml|text2voice" ); echo "报告任结果
"; echo "http://api.aisas.com/taskapi.php?".http_build_query($task); echo "
返回:"; $task = array( "code"=>'200',//200成功,400不 "taskUuid"=>"sdfdfdfdfdfdfdf", "reportUrl"=>"http://api.aisas.com/taskapi.php", "reportUrlProcess"=>"http://api.aisas.com/taskapi.php", "taskDetail" => array( "model" => "chatgml", "action" => "install", "param1" => "/sdapi/v1/txt2img", "param2" => "json", "param3" => "param3" )//检查这里不为空,有任务,空为不用做 ); echo '
'.json_encode($task,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE)."
"; echo "
////////////////////////////////////////////
报告任务进度
"; //报告任务进度 $task = array( "sign"=>md5('32mdd5'), "time"=>"16828283883", "uuid"=>'XXXXXXXXXXXXX',//设备ID "taskUuid"=>"aaaaaaaaaaaaaaaaaaa",//任务ID "info"=>"json(process)",//任务的进度信息 ); echo "http://api.aisas.com/taskapi.php?".http_build_query($task); echo "
返回:
".json_encode(array("code"=>200,"msg"=>"success"),JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE)."
"; echo "
////////////////////////////////////////////
报告结果
"; //报告任结果 $task = array( "sign"=>md5('32smd5'), "time"=>"16828283883", "uuid"=>'XXXXXXXXXXXXX',//设备ID "taskUuid"=>"aaaaaaaaaaaaaaaaaaa",//任务ID "info"=>"json(result)",//任务的结果完成后端数组,是什么结果就提交什么 ); echo "http://api.aisas.com/taskapi.php?".http_build_query($task); echo "
返回:
".json_encode(array("code"=>200,"msg"=>"success"),JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE)."
";