_valid([ "job_id.require" => trans("empty.require") ]); if (!is_array($param)) return error($param); $data = (new XcJob)->token()->getJobDetail($param['job_id']); if ($data['base_resp']['status_code'] <> 0) return error("获取任务失败"); $task = [ "expiration_time_end" => date("Y-m-d H:i:s",$data['object_field_info']['object_basic_info']['expiration_time_end']), "title" => $data['object_field_info']['object_basic_info']['object_name']??'', "product_cover_url" => $data['object_field_info']['object_product_info']['product_cover_url']??'', "product_name" => $data['object_field_info']['object_product_info']['product_name']??'', "product_id" => $data['object_field_info']['object_product_info']['external_product_id']??'', "auto" => 2, "job_id" => $param['job_id'], "category" => "douyin", "category_detail" => $data['object_field_info']['object_product_info']['category_detail']['second_cname']??'', "product_selling_point" => $data['object_field_info']['object_product_info']['product_selling_point_detail']??'', "target_audience" => $data['object_field_info']['object_product_info']['target_audience_desc']??'', "content" => $data['object_field_info']['object_requirement_info']['author_preference']?nl2br($data['object_field_info']['object_requirement_info']['author_preference']):'', "total_budget" => $data['object_field_info']['object_project_info']['total_budget_fen']?format_money_bit($data['object_field_info']['object_project_info']['total_budget_fen']/100):'', ]; return success("ok",$task); } catch (\Throwable $throwable) { return error($throwable->getMessage()); } } }