api.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. /** goodScan
  55. https://was.baoshi56.com/api/thirdPart/goodscan/weight/new //新增包裹
  56. */
  57. /**浩创请求地址
  58. https://wcs.baoshi56.com/api/thirdPart/haochuang/sorting/login
  59. https://wcs.baoshi56.com/api/thirdPart/haochuang/sorting/process
  60. https://wcs.baoshi56.com/api/thirdPart/haochuang/sorting/done
  61. **/
  62. 'rate_limits' => [
  63. // 访问频率限制,次数/分钟
  64. 'access' => env('RATE_LIMITS', '60,1'),
  65. // 登录相关,次数/分钟
  66. 'sign' => env('SIGN_RATE_LIMITS', '10,1'),
  67. ],
  68. "timeliness_limits" => [
  69. 'token' => 604800,
  70. ],
  71. ];