AdminPickLink.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. namespace app\constants;
  3. use app\models\StoreAdmin;
  4. class AdminPickLink
  5. {
  6. const LIST = [
  7. [
  8. 'key' => 'goods',
  9. 'title' => '商品',
  10. 'is_show' => 0
  11. ],
  12. [
  13. 'key' => 'order',
  14. 'title' => '订单',
  15. 'is_show' => 0
  16. ],
  17. [
  18. 'key' => 'refund_order',
  19. 'title' => '售后',
  20. 'is_show' => 0
  21. ],
  22. [
  23. 'key' => 'category',
  24. 'title' => '分类',
  25. 'is_show' => 0
  26. ],
  27. [
  28. 'key' => 'evaluate',
  29. 'title' => '商品评价',
  30. 'is_show' => 0
  31. ],
  32. [
  33. 'key' => 'store_data',
  34. 'title' => '店铺数据',
  35. 'is_show' => 0
  36. ],
  37. [
  38. 'key' => 'store',
  39. 'title' => '店铺',
  40. 'is_show' => 0
  41. ],
  42. [
  43. 'key' => 'clerk',
  44. 'title' => '商家券核销',
  45. 'is_show' => 0
  46. ],
  47. // [
  48. // 'key' => 'store_pay',
  49. // 'title' => '支付进件',
  50. // 'is_show' => 0
  51. // ],
  52. [
  53. 'key' => 'store_set',
  54. 'title' => '店铺模版',
  55. 'is_show' => 0
  56. ],
  57. [
  58. 'key' => 'store_withdraw',
  59. 'title' => '商城提现',
  60. 'is_show' => 0
  61. ],
  62. [
  63. 'key' => 'store_profit',
  64. 'title' => '批量溢价',
  65. 'is_show' => 0
  66. ],
  67. [
  68. 'key' => 'user_log',
  69. 'title' => '用户记录',
  70. 'is_show' => 0
  71. ],
  72. [
  73. 'key' => 'erp_scan',
  74. 'title' => '扫码入库',
  75. 'is_show' => 0
  76. ],
  77. [
  78. 'key' => 'cloud_purchase',
  79. 'title' => '云仓批发',
  80. 'is_show' => 0
  81. ],
  82. [
  83. 'key' => 'cloud_goods',
  84. 'title' => '云仓选品',
  85. 'is_show' => 0
  86. ],
  87. [
  88. 'key' => 'store_kefu',
  89. 'title' => '客服消息',
  90. 'is_show' => 0
  91. ]
  92. ,
  93. [
  94. 'key' => 'order_goods_cancel',
  95. 'title' => '单品退款',
  96. 'is_show' => 0
  97. ]
  98. ];
  99. public static function getLink() {
  100. try {
  101. $list = self::LIST;
  102. $store_no = [
  103. 'clerk', 'store_pay', 'store_set', 'store_set', 'store_withdraw', 'store_profit', 'user_log', 'cloud_purchase', 'cloud_goods'
  104. ];
  105. foreach ($list as $index => $item) {
  106. if (!\Yii::$app->isSaas() && in_array($item['key'], $store_no)) {
  107. unset($list[$index]);
  108. }
  109. }
  110. return array_values($list);
  111. } catch (\Exception $e) {
  112. return null;
  113. }
  114. }
  115. }