Commit 77307efb by 朱继来

调整协议

parent 2d4e0f80
Showing with 3 additions and 1 deletions
...@@ -682,6 +682,8 @@ Class OrderController extends Controller ...@@ -682,6 +682,8 @@ Class OrderController extends Controller
$info['map']['p'] = 1; $info['map']['p'] = 1;
$potrol = $_SERVER['SERVER_PORT'] == 443 ? 'https' : 'http';
$params = [ $params = [
"type" => 2, // 类型 1:模板调用 2: api回调 (必填) "type" => 2, // 类型 1:模板调用 2: api回调 (必填)
"source_items_id" => $source_items_id, //设置来源明细id:http://data.ichunt.net/database/1199(必填) "source_items_id" => $source_items_id, //设置来源明细id:http://data.ichunt.net/database/1199(必填)
...@@ -689,7 +691,7 @@ Class OrderController extends Controller ...@@ -689,7 +691,7 @@ Class OrderController extends Controller
"excel_suf" => "csv", //导出文件格式 csv,xls(必填) "excel_suf" => "csv", //导出文件格式 csv,xls(必填)
"header" => $headerCell, //导出文件头部 (必填,不得用 ID 做头部,数据顺序必须一致) "header" => $headerCell, //导出文件头部 (必填,不得用 ID 做头部,数据顺序必须一致)
"query_param" => $info['map'], //p 第几页,limit每页多少条 占位符,照抄不需要改 (必填) "query_param" => $info['map'], //p 第几页,limit每页多少条 占位符,照抄不需要改 (必填)
"callbackurl" => "http://".$_SERVER['HTTP_HOST']."/hprose/service", //hrpose 数据提供网址(提供导出脚本分页回调获取数据,必填) "callbackurl" => $potrol."://".$_SERVER['HTTP_HOST']."/hprose/service", //hrpose 数据提供网址(提供导出脚本分页回调获取数据,必填)
"callbackfuc" => "orderExport", //hrpose 回调函数(必填) "callbackfuc" => "orderExport", //hrpose 回调函数(必填)
"create_uid" => $request->user->userId, #创建人id(必填) "create_uid" => $request->user->userId, #创建人id(必填)
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment