[ //不可以 'canNot' => 1, //可以 'can' => 2, ], 'ptAsset' => [ 'hdBalance' => ['id' => 1, 'name' => '零售平台余额'], 'ghsBalance' => ['id' => 2, 'name' => '供货商平台余额'], 'hdTxBalance' => ['id' => 3, 'name' => '零售平台可提现余额'], 'ghsTxBalance' => ['id' => 4, 'name' => '供货商平台可提现余额'], ], //采购和销售单的有效期 'sale_purchase_order_valid' => 180, //需要显示国兰的信息 0不需要 1需要(要审核小程序请显示国兰信息) 'showGlInfo' => 1, //显示零售和供货商的演示入口 'showDemo' => 0, //零售演示的管理员id 'hdDemoAdminId' => 320, //供货商演示的管理员id 'ghsDemoAdminId' => 319, 'expressList' => [ [ "id" => 1, "deliveryId" => "dada", "deliveryName" => "达达" ] ], //默认的日期搜索选项 'dateDefaultOption' => [ ['name' => '昨天', 'value' => 'yesterday'], ['name' => '今天', 'value' => 'today',], ['name' => '本月', 'value' => 'thisMonth',], ['name' => '上月', 'value' => 'lastMonth',], ['name' => '今年', 'value' => 'thisYear',], ], //所属平台类型 'ptStyle' => [ 'hd' => 1, 'ghs' => 2, 'kmGhs' => 3, ], 'merchantStatus' => ['checking' => 0, 'pass' => 1, 'noPass' => 2, 'freeze' => 3, 'unfreeze' => 4, 'shut' => 5], //涨价方式 'riseType' => ['noRise' => 0, 'percent' => 1, 'amount' => 2,], 'riseTypeName' => [0 => '不涨价', 1 => '按百分比', 2 => '按金额'], //支付方式 'payWay' => ['wxPay' => 0, 'alipay' => 1, 'balancePay' => 2, 'debtPay' => 3], 'payWayName' => [0 => '微信', 1 => '支付宝', 2 => '余额', 3 => '欠款'], 'payWayFullName' => [0 => '微信支付', 1 => '支付宝', 2 => '余额支付', 3 => '欠款支付'], //后台支付方式选项 'htPayWayOption' => [ ['name' => '微信', 'id' => 0], ['name' => '支付宝', 'id' => 1], ], //优惠类型 'discountType' => [ //没有优惠 'noDiscount' => 1, //使用平台优惠券 'usePtCoupon' => 2, ], 'payStatus' => ['cancel' => -1, 'waitForPay' => 0, 'waitForSend' => 1], 'sendStatusName' => [0 => '待发货', 1 => '送货中', 2 => '已送达'], 'sendStatus' => ['waitForSend' => 0, 'sending' => 1, 'reached' => 2], 'replyType' => ['redirectUrl' => 0, 'text' => 1, 'news' => 2, 'multiNews' => 3], 'goodsStatusName' => [0 => '正常', 1 => '下架', 2 => '删除'], 'goodsStatus' => ['online' => 0, 'soldOut' => 1, 'del' => 2], 'goodsDelStatusName' => [0 => '正常,未删除', 1 => '删除'], 'goodsDelStatus' => ['normal' => 0, 'del' => 1], 'reachPeriodName' => [0 => '上午', 1 => '下午', 2 => '晚上'], 'reachPeriod' => ['am' => 0, 'pm' => 1, 'night' => 2], //运费 'freight' => [ 'firstDistance' => 5000,//5公里内 'firstPrice' => 0,//16元运费 'nextDistance' => 1000,//每增加1公里 'nextPrice' => 2,//增加2元 ], "io" => ['payout' => 0, 'income' => 1, 'other' => 2], "ioName" => [0 => '支出', 1 => '收入', 2 => '其它'], //流水类型,充值支付回调时的订单类型 "capitalType" => [ 'xhOrder' => ['id' => 0, 'name' => 'xhOrder'], 'xhActiveOrder' => ['id' => 2, 'name' => 'xhActiveOrder'], //充值 'xhRecharge' => ['id' => 4, 'name' => 'xhRecharge'], //支付宝关联微信 'xhUserUnite' => ['id' => 5, 'name' => 'xhUserUnite'], 'xhDrawCash' => ['id' => 6, 'name' => 'xhDrawCash'], 'xhApplyOrder' => ['id' => 7, 'name' => 'xhApplyOrder'], 'xhMergeUser' => ['id' => 8, 'name' => 'xhMergeUser'], 'xhRenew' => ['id' => 9, 'name' => 'xhRenew'], //供货商订单 'xhGhsOrder' => ['id' => 10, 'name' => 'xhGhsOrder'], //花店采购 'xhPurchase' => ['id' => 11, 'name' => 'xhPurchase'], //培训报名 'pxApply' => ['id' => 12, 'name' => 'pxApply'], //花店采购结算 'hdPurchaseClear' => ['id' => 20, 'name' => 'hdPurchaseClear'], ], "capitalTypeList" => [//流水类型的对应链接,后台收支明细查看时跳转的链接 0 => ['link' => '/capital/order-detail', 'name' => '网店', 'orderLink' => '/order/detail', 'id' => 0,], 2 => ['link' => '/capital/active-order-detail', 'name' => '活动报名', 'orderLink' => '', 'id' => 2,], 4 => ['link' => '/capital/recharge-detail', 'name' => '充值', 'orderLink' => '', 'id' => 4,], 5 => ['link' => '/capital/user-unite', 'name' => '帐号关联', 'orderLink' => '', 'id' => 5,], 6 => ['link' => '/capital/draw-cash', 'name' => '提现', 'orderLink' => '', 'id' => 6,], 7 => ['link' => '/capital/apply-order-detail', 'name' => '接入申请', 'orderLink' => '', 'id' => 7,], 8 => ['link' => '/capital/merge-user', 'name' => '帐号合并', 'orderLink' => '', 'id' => 8,], 9 => ['link' => '/capital/renew', 'name' => '续费', 'orderLink' => '', 'id' => 9,], 10 => ['link' => '/capital/order-detail', 'name' => '订单', 'orderLink' => '', 'id' => 10,], 11 => ['link' => '/capital/purchase-detail', 'name' => '订单', 'orderLink' => '', 'id' => 11,], 12 => ['link' => '/capital/purchase-detail', 'name' => '培训报名', 'orderLink' => '', 'id' => 12,], 20 => ['link' => '', 'name' => '采购结算', 'orderLink' => '', 'id' => 20,], ], //模板消息 平台类型: 1花店,2供货商,3商城 'tMessage' => [ 1 => [ 'OPENTM418105100' => '下单成功通知', ], 2 => [ 'OPENTM418105100' => '下单成功通知', ], 3 => [ 'OPENTM418105100' => '下单成功通知', ], ], //用户来源 'userSource' => [ 0 => 'official', 1 => 'alipay', 2 => 'mini', ], 'userSourceGetId' => [ 'official' => ['id' => 0, 'name' => 'official'], 'alipay' => ['id' => 1, 'name' => 'alipay'], 'mini' => ['id' => 2, 'name' => 'mini'], ], //达达取消原因 'dadaCancelReason' => [ [ 'id' => 1, 'reason' => '没有配送员接单', ], [ 'id' => 2, 'reason' => '配送员没来取货', ], [ 'id' => 3, 'reason' => '配送员态度太差', ], [ 'id' => 4, 'reason' => '顾客取消订单', ], [ 'id' => 5, 'reason' => '订单填写错误', ], [ 'id' => 34, 'reason' => '配送员让我取消此单', ], [ 'id' => 35, 'reason' => '配送员不愿上门取货', ], [ 'id' => 36, 'reason' => '我不需要配送了', ], [ 'id' => 37, 'reason' => '配送员以各种理由表示无法完成订单', ], ] ]; //取配置文件的值 public static function getDict($category, $first = null, $second = null) { $respond = self::$data[$category]; if (isset($first) && isset($second)) { if (isset($respond[$first][$second]) == false) { util::fail("没有找到相应字典 category:{$category} first:{$first} second:{$second}"); } return $respond[$first][$second]; } if (isset($first)) { if (isset($respond[$first]) == false) { util::fail("没有找到相应字典 category:{$category} first:{$first}"); } return $respond[$first]; } return $respond; } //列出所有的常量 ssh 2021.3.18 public static function get() { $respond = self::$data; return $respond; } }