api.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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',
  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" => "",
  58. "request" => [
  59. "bin_location" => "/account/binlocation", //POST
  60. "find_all_bin_location" => " /account/binlocation",//GET
  61. "delete_bin_location" => " /account/binlocation", //DELETE
  62. "create_storage_type" => "/account/basicdata-type/storage/type", //POST
  63. "find_storage_type" => "/account/basicdata-type/storage/type/", //GET /{storageTypeId}
  64. "create_order" => "/order/warehouse-order", //POST
  65. "find_order" => "/order/warehouse-order/",//GET /{id}
  66. ],
  67. ],
  68. /** goodScan
  69. https://was.baoshi56.com/api/thirdPart/goodscan/weight/new //新增包裹
  70. */
  71. /**浩创请求地址
  72. https://wcs.baoshi56.com/api/thirdPart/haochuang/sorting/login
  73. https://wcs.baoshi56.com/api/thirdPart/haochuang/sorting/process
  74. https://wcs.baoshi56.com/api/thirdPart/haochuang/sorting/done
  75. **/
  76. 'rate_limits' => [
  77. // 访问频率限制,次数/分钟
  78. 'access' => env('RATE_LIMITS', '60,1'),
  79. // 登录相关,次数/分钟
  80. 'sign' => env('SIGN_RATE_LIMITS', '10,1'),
  81. ],
  82. "timeliness_limits" => [
  83. 'token' => 604800,
  84. ],
  85. ];