| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <?php
- namespace app\constants;
- use app\models\StoreAdmin;
- class AdminPickLink
- {
- const LIST = [
- [
- 'key' => 'goods',
- 'title' => '商品',
- 'is_show' => 0
- ],
- [
- 'key' => 'order',
- 'title' => '订单',
- 'is_show' => 0
- ],
- [
- 'key' => 'refund_order',
- 'title' => '售后',
- 'is_show' => 0
- ],
- [
- 'key' => 'category',
- 'title' => '分类',
- 'is_show' => 0
- ],
- [
- 'key' => 'evaluate',
- 'title' => '商品评价',
- 'is_show' => 0
- ],
- [
- 'key' => 'store_data',
- 'title' => '店铺数据',
- 'is_show' => 0
- ],
- [
- 'key' => 'store',
- 'title' => '店铺',
- 'is_show' => 0
- ],
- [
- 'key' => 'clerk',
- 'title' => '商家券核销',
- 'is_show' => 0
- ],
- // [
- // 'key' => 'store_pay',
- // 'title' => '支付进件',
- // 'is_show' => 0
- // ],
- [
- 'key' => 'store_set',
- 'title' => '店铺模版',
- 'is_show' => 0
- ],
- [
- 'key' => 'store_withdraw',
- 'title' => '商城提现',
- 'is_show' => 0
- ],
- [
- 'key' => 'store_profit',
- 'title' => '批量溢价',
- 'is_show' => 0
- ],
- [
- 'key' => 'user_log',
- 'title' => '用户记录',
- 'is_show' => 0
- ],
- [
- 'key' => 'erp_scan',
- 'title' => '扫码入库',
- 'is_show' => 0
- ],
- [
- 'key' => 'cloud_purchase',
- 'title' => '云仓批发',
- 'is_show' => 0
- ],
- [
- 'key' => 'cloud_goods',
- 'title' => '云仓选品',
- 'is_show' => 0
- ],
- [
- 'key' => 'store_kefu',
- 'title' => '客服消息',
- 'is_show' => 0
- ]
- ,
- [
- 'key' => 'order_goods_cancel',
- 'title' => '单品退款',
- 'is_show' => 0
- ]
- ];
- public static function getLink() {
- try {
- $list = self::LIST;
- $store_no = [
- 'clerk', 'store_pay', 'store_set', 'store_set', 'store_withdraw', 'store_profit', 'user_log', 'cloud_purchase', 'cloud_goods'
- ];
- foreach ($list as $index => $item) {
- if (!\Yii::$app->isSaas() && in_array($item['key'], $store_no)) {
- unset($list[$index]);
- }
- }
- return array_values($list);
- } catch (\Exception $e) {
- return null;
- }
- }
- }
|