api.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. return [
  3. 'api_faking' => env('API_FAKING', false),
  4. 'api_switch_receive_to_wms' => env('API_SWITCH_RECEIVE_TO_WMS', true),
  5. 'jianshang_rejecteds_log_switch' => true,
  6. 'url_rejected_send_jianshang' => 'http://daye.mjstyle.cn:8083/mjstyle-bs-service/order/receive',// 222-6-8 证实为废弃接口
  7. 'url_rejected_send_jianshang2' => 'http://daye.mjstyle.cn:8083/mjstyle-bs-service/order/receive2',
  8. 'fakingUrl_rejected_send_jianshang' => '/api/rejected/jianshang/send',
  9. 'sign_key_rejected_send_jianshang' => 'ymgYuN01D3UCZneZ53wGC0suOIUPmLgY',
  10. 'flux'=>[
  11. /** Flux
  12. https://was.baoshi56.com/api/thirdPart/flux/receive/new //新增收货
  13. https://was.baoshi56.com/api/thirdPart/flux/package/new //新增包裹
  14. https://was.baoshi56.com/api/thirdPart/flux/waybill/new //新增运单
  15. **/
  16. 'receive'=>[
  17. 'new'=>'http://106.14.155.246:19192/datahub/FluxBSJsonApi/RECECF?messageId=RECECF' //通知WMS, 已完成的订单收货
  18. ],
  19. 'package'=>[
  20. 'new'=>'http://106.14.155.246:19192/datahub/FluxBSJsonApi/TASK' //通知WMS, 已称完的包裹
  21. ],
  22. 'waybill'=>[
  23. 'new'=>'http://106.14.155.246:19192/datahub/FluxBSJsonApi/?messageId=BS_TMS' //通知WMS, 已称完的包裹
  24. ],
  25. /**分拔墙
  26. https://wcs.baoshi56.com/api/thirdPart/flux/sorting/newBatch //下发波次
  27. https://wcs.baoshi56.com/api/thirdPart/flux/sorting/newCanceledOrder //下发取消订单
  28. **/
  29. 'inform'=>[
  30. 'binAssignment' => 'http://106.14.155.246:19192/datahub/FluxBSJsonApi/PUTTOLOCATION', //发送隔口号(播种位)给WMS
  31. 'batchFinished' => 'http://106.14.155.246:19192/datahub/FluxBSJsonApi/PUTTOLIGHT', //分播结束后通知WMS结果
  32. ],
  33. ],
  34. /** 海柔
  35. * https://was.baoshi56.com/api/thirdPart/haiq/pickStation/processed //标记料箱已处理
  36. * https://was.baoshi56.com/api/thirdPart/haiq/storage/taskUpdate //任务状态更新
  37. * https://was.baoshi56.com/api/thirdPart/haiq/storage/exception //异常通知
  38. * https://was.baoshi56.com/api/thirdPart/haiq/light/update //拍灯通知
  39. */
  40. 'haiq'=>[
  41. 'storage'=>[
  42. // 'relocate' => "http://59.37.126.227:65448/api/haiqEss/gr/relocate",
  43. 'moveBin' => "http://58.33.243.164:2011/api/haiqEss/gr/relocate", //移动料箱
  44. 'light' => "http://58.33.243.164:40000/api/haiqEss/ctlPTL", //控灯
  45. ],
  46. ],
  47. 'baidu'=>[
  48. 'speech'=>[
  49. 'APP_ID'=> '18688250',
  50. 'API_KEY'=> 'GLSF2EP1H9C6hRxQ3b4Kb84I',
  51. 'SECRET_KEY'=> 'jEAdTa8EapjZZnfxxmdSwFFjjt2UmoaX',
  52. ],
  53. ],
  54. "syrius" => [
  55. "client_id" => "1dg6clndocrtiugsl4bj83kpk6",
  56. "client_secret" => "vthuec06c1jrjr31nt98l8r7kune0uqdgrjeifm0472re923c15",
  57. "base_url" => "https://flagship.flexgalaxy.com",
  58. "request" => [
  59. "auth" => "/authenication/expansion/tenant", //POST
  60. "bin_location" => "/account/binlocation", //POST
  61. "find_all_bin_location" => " /account/binlocation",//GET
  62. "delete_bin_location" => " /account/binlocation", //DELETE
  63. "create_storage_type" => "/account/basicdata-type/storage/type", //POST
  64. "find_storage_type" => "/account/basicdata-type/storage/type/", //GET /{storageTypeId}
  65. "create_order" => "/order/warehouse-order", //POST
  66. "find_order" => "/order/warehouse-order/",//GET /{id}
  67. ],
  68. ],
  69. /** goodScan
  70. https://was.baoshi56.com/api/thirdPart/goodscan/weight/new //新增包裹
  71. */
  72. /**浩创请求地址
  73. https://wcs.baoshi56.com/api/thirdPart/haochuang/sorting/login
  74. https://wcs.baoshi56.com/api/thirdPart/haochuang/sorting/process
  75. https://wcs.baoshi56.com/api/thirdPart/haochuang/sorting/done
  76. **/
  77. 'rate_limits' => [
  78. // 访问频率限制,次数/分钟
  79. 'access' => env('RATE_LIMITS', '60,1'),
  80. // 登录相关,次数/分钟
  81. 'sign' => env('SIGN_RATE_LIMITS', '10,1'),
  82. ],
  83. "timeliness_limits" => [
  84. 'token' => 604800,
  85. ],
  86. 'java'=>[
  87. 'base' => "https://api.baoshi56.com/",
  88. 'wms'=>[
  89. 'rejectedPushTask'=>[
  90. 'receivePush'=>env('WMS_REJECTED_PUSH_TASK', 'https://api.baoshi56.com/api/wms/rejectedPushTask/receiveUpdate'),
  91. ]
  92. ],
  93. "device" => [
  94. "picking" => [
  95. "getContainerOfWave" => "api/device/check/picking/getContainerOfWave",
  96. ]
  97. ],
  98. "piece" => [
  99. "log" => [
  100. "record" => "api/piece/user/record/create",
  101. ]
  102. ]
  103. ]
  104. ];